org.jboss.byteman.rule.grammar
Class ParseNode.UnaryNode
java.lang.Object
org.jboss.byteman.rule.grammar.ParseNode
org.jboss.byteman.rule.grammar.ParseNode.UnaryNode
- Enclosing class:
- ParseNode
private static class ParseNode.UnaryNode
- extends ParseNode
a parse node with one child
Field Summary |
private java.lang.Object |
child0
|
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.UnaryNode(int tag,
java.lang.String file,
int line,
int column,
java.lang.Object child0)
|
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 a string representing 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
ParseNode.UnaryNode
public ParseNode.UnaryNode(int tag,
java.lang.String file,
int line,
int column,
java.lang.Object child0)
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 a string representing the display representation of this node
- Specified by:
getText
in class ParseNode
- Returns:
- a string representing the display representation of this node