org.jboss.byteman.rule.grammar
Class ParseNode.TernaryNode
java.lang.Object
org.jboss.byteman.rule.grammar.ParseNode
org.jboss.byteman.rule.grammar.ParseNode.TernaryNode
- Enclosing class:
- ParseNode
private static class ParseNode.TernaryNode
- extends ParseNode
a parse node with three children
Field Summary |
private java.lang.Object |
child0
|
private java.lang.Object |
child1
|
private java.lang.Object |
child2
|
Fields inherited from class org.jboss.byteman.rule.grammar.ParseNode |
AND, ARRAY, ASSIGN, BAND, BIND, BINOP, BOOLEAN_LITERAL, BOR, BXOR, COLON, COMMA, DIV, DOLLAR, EQ, FIELD, FLOAT_LITERAL, GE, GT, IDENTIFIER, INTEGER_LITERAL, LE, LT, METH, MINUS, MOD, MUL, NE, NEW, NOT, NOTHING, NULL_LITERAL, OR, PATH, PLUS, RETURN, SEMI, STRING_LITERAL, TERNOP, THROW, TWIDDLE, UMINUS, UNOP |
Constructor Summary |
ParseNode.TernaryNode(int tag,
java.lang.String file,
int line,
int column,
java.lang.Object child0,
java.lang.Object child1,
java.lang.Object child2)
|
Method Summary |
java.lang.Object |
getChild(int idx)
get the nth child for this node or null if the index exceeds the child count |
int |
getChildCount()
get the child count for this node |
java.lang.String |
getText()
get the display representation of this node |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
child0
private java.lang.Object child0
child1
private java.lang.Object child1
child2
private java.lang.Object child2
ParseNode.TernaryNode
public ParseNode.TernaryNode(int tag,
java.lang.String file,
int line,
int column,
java.lang.Object child0,
java.lang.Object child1,
java.lang.Object child2)
getChildCount
public int getChildCount()
- get the child count for this node
- Specified by:
getChildCount
in class ParseNode
- Returns:
- the child count for this node
getChild
public java.lang.Object getChild(int idx)
- get the nth child for this node or null if the index exceeds the child count
- Specified by:
getChild
in class ParseNode
- Returns:
- the nth child for this node
getText
public java.lang.String getText()
- get the display representation of this node
- Specified by:
getText
in class ParseNode
- Returns:
- the display representation of this node