|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectASTNode
ExprNode
OpExprNode
public class OpExprNode
An AST node representing an operator applied to one or two operands, as in "exp1 + exp2" or "NOT exp".
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ASTNode |
---|
ASTNode.DataType |
Constructor Summary | |
---|---|
OpExprNode(ExprNode left,
ExprNode right,
ASTNode.Opcode opcode)
Creates a new OpExprNode. |
Method Summary | |
---|---|
void |
unparse(java.io.PrintWriter p,
int level)
Prints a source representation of the tree rooted at this node on output stream p. |
Methods inherited from class ASTNode |
---|
indent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpExprNode(ExprNode left, ExprNode right, ASTNode.Opcode opcode)
left
- the left operand. Will be null if the operator is a unary
operator.right
- the right operand.opcode
- the opcode.Method Detail |
---|
public void unparse(java.io.PrintWriter p, int level)
unparse
in class ASTNode
p
- the place to display the output.level
- the number of levels of indentation to use if the output
requires more than one line.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |