public class CastExpression extends Expression
Modifier and Type | Field and Description |
---|---|
Expression |
expression
(¬ø) The expression whose value should be casted.
|
Type |
type
(¬ø) The type to cast to.
|
parenthesized, typeCache, typeCacheFilled
byteOffset, line, nodeID, symbolTable
Constructor and Description |
---|
CastExpression(Type t,
Expression 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)
Determines if this object is equivalent to another object.
|
int |
hashCode()
A hash code based on the hash codes of
type and expression . |
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 |
write(StringBuffer buffer)
Writes a string representation of this
ASTNode to the specified buffer. |
containsQuantifiedVariable, getVariableTypes, senseValueChild
public Type type
public Expression expression
public CastExpression(Type t, Expression e)
t
- Reference to the object representing the cast's type.e
- Reference to the object representing the expression to cast.public ASTNodeIterator iterator()
public Object clone()
public boolean equals(Object o)
public int hashCode()
type
and expression
.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.Copyright © 2016. All rights reserved.