public class CastExpr extends Expr
| Constructor and Description |
|---|
CastExpr(Expr expr,
Type type)
Constructor.
|
CastExpr(Expr expr,
Type castType,
Type type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Type |
castType() |
java.lang.Object |
clone() |
boolean |
equalsExpr(Expr other)
Compares this expression to another.
|
Expr |
expr() |
int |
exprHashCode()
Returns the hash code for this expresion.
|
void |
visit(TreeVisitor visitor) |
void |
visitForceChildren(TreeVisitor visitor)
Visit the children of this node.
|
cleanupOnly, comparator, copyInto, def, isDef, setDef, setType, stmt, typeblock, cleanup, copyInto, hasParent, key, parent, replaceWith, replaceWith, setKey, setParent, setValueNumber, toString, valueNumber, visitChildren, visitOnlypublic CastExpr(Expr expr, Type type)
expr - Expression (object) to be cast.type - The type to which to cast expr and as well as the type of this
expression.public Expr expr()
public Type castType()
public void visitForceChildren(TreeVisitor visitor)
NodevisitForceChildren in class Nodepublic void visit(TreeVisitor visitor)
public int exprHashCode()
ExprexprHashCode in class Exprpublic boolean equalsExpr(Expr other)
ExprequalsExpr in class Exprother - Expr to which to compare this.