public class ClassifierCastExpression extends ClassifierExpression
Modifier and Type | Field and Description |
---|---|
ClassifierReturnType |
castType
(¬ø) The return type used to cast.
|
ClassifierExpression |
expression
(¬ø) The expression being casted.
|
argument, cacheIn, comment, name, parenthesized, returnType, singleExampleCache
byteOffset, line, nodeID, symbolTable
Constructor and Description |
---|
ClassifierCastExpression(ClassifierReturnType t,
ClassifierExpression e)
Initializing constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a new object with the same primitive data, and recursively creates new member data
objects as well.
|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
int |
hashCode()
Returns a hash code value for java hash structures.
|
ASTNodeIterator |
iterator()
Returns an iterator used to successively access the children of this node.
|
void |
runPass(Pass pass)
Ensures that the correct
run() method is called for this type of node. |
void |
setCacheIn(Name c)
Sets the
cacheIn member variable to the argument. |
StringBuffer |
shallow()
Creates a
StringBuffer containing a shallow representation of this
ASTNode . |
void |
write(StringBuffer buffer)
Writes a string representation of this
ASTNode to the specified buffer. |
getLine, getName
public ClassifierReturnType castType
public ClassifierExpression expression
public ClassifierCastExpression(ClassifierReturnType t, ClassifierExpression e)
t
- The return type used to cast.e
- The expression being casted.public void setCacheIn(Name c)
cacheIn
member variable to the argument.setCacheIn
in class ClassifierExpression
c
- The new expression for the cacheIn
member variable.public int hashCode()
public boolean equals(Object o)
public ASTNodeIterator iterator()
public Object clone()
public void runPass(Pass pass)
run()
method is called for this type of node.public void write(StringBuffer buffer)
ASTNode
to the specified buffer. The
representation written is parsable by the LBJava compiler, but not very readable.public StringBuffer shallow()
StringBuffer
containing a shallow representation of this
ASTNode
.shallow
in interface CodeGenerator
shallow
in class ClassifierExpression
StringBuffer
containing a shallow text representation of the given
node.Copyright © 2016. All rights reserved.