Package org.jboss.byteman.rule.grammar
Class ParseNode.TernaryNode
- java.lang.Object
-
- org.jboss.byteman.rule.grammar.ParseNode
-
- org.jboss.byteman.rule.grammar.ParseNode.TernaryNode
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Objectchild0private java.lang.Objectchild1private java.lang.Objectchild2-
Fields inherited from class org.jboss.byteman.rule.grammar.ParseNode
AND, ARRAY, ARRAY_INIT, ASSIGN, BAND, BIND, BINOP, BOOLEAN_LITERAL, BOR, BXOR, CLASS, COLON, COMMA, DIV, DOLLAR, EQ, FIELD, FLOAT_LITERAL, GE, GT, IDENTIFIER, INTEGER_LITERAL, LE, LSH, LT, METH, MINUS, MOD, MUL, NE, NEW, NOT, NOTHING, NULL_LITERAL, OR, PATH, PLUS, RETURN, RSH, SEMI, STRING_LITERAL, TERNOP, THROW, TWIDDLE, UMINUS, UNOP, URSH
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetChild(int idx)get the nth child for this node or null if the index exceeds the child countintgetChildCount()get the child count for this nodejava.lang.StringgetText()get the display representation of this node
-
-
-
Method Detail
-
getChildCount
public int getChildCount()
get the child count for this node- Specified by:
getChildCountin classParseNode- 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
-
-