cager.jexpr.ast
Class CastExpression
java.lang.Object
cager.jexpr.ast.AST
cager.jexpr.ast.TypedAST
cager.jexpr.ast.Expression
cager.jexpr.ast.CastExpression
- public class CastExpression
- extends Expression
An AST node to represent a Cast, such as (Integer)obj.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CastExpression
public CastExpression(org.apache.bcel.generic.Type type,
Expression expression)
getChildren
public AST[] getChildren()
- Specified by:
getChildren in class AST
getExpression
public Expression getExpression()
visit
public java.lang.Object visit(Visitor v,
java.lang.Object o)
throws ParseException
- Description copied from class:
AST
- Provided to implement the visitor pattern.
- Specified by:
visit in class AST
- Throws:
ParseException
dump
public void dump(int level)
- Description copied from class:
AST
- Dump this node and all children to System.out.
- Overrides:
dump in class TypedAST