cager.jexpr.ast
Class UnaryExpression
java.lang.Object
cager.jexpr.ast.AST
cager.jexpr.ast.TypedAST
cager.jexpr.ast.Expression
cager.jexpr.ast.UnaryExpression
- public class UnaryExpression
- extends Expression
|
Method Summary |
void |
dump(int level)
Dump this node and all children to System.out. |
AST[] |
getChildren()
|
java.lang.Object |
visit(Visitor v,
java.lang.Object o)
Provided to implement the visitor pattern. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ADD
public static final int ADD
- See Also:
- Constant Field Values
SUBTRACT
public static final int SUBTRACT
- See Also:
- Constant Field Values
op
public Operator op
E
public Expression E
postfix
public boolean postfix
UnaryExpression
public UnaryExpression(Expression E,
Operator op,
boolean postfix)
UnaryExpression
public UnaryExpression(Expression E,
java.lang.String op,
boolean postfix)
getChildren
public AST[] getChildren()
- Specified by:
getChildren in class AST
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