org.jboss.byteman.rule.grammar
Class ParseNode.BinaryNode

java.lang.Object
  extended by org.jboss.byteman.rule.grammar.ParseNode
      extended by org.jboss.byteman.rule.grammar.ParseNode.BinaryNode
Enclosing class:
ParseNode

private static class ParseNode.BinaryNode
extends ParseNode

a parse node with two children


Field Summary
private  java.lang.Object child0
           
private  java.lang.Object child1
           
 
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.BinaryNode(int tag, java.lang.String file, int line, int column, java.lang.Object child0, java.lang.Object child1)
           
 
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 org.jboss.byteman.rule.grammar.ParseNode
getColumn, getLine, getPos, getTag, node, node, node, node, node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

child0

private java.lang.Object child0

child1

private java.lang.Object child1
Constructor Detail

ParseNode.BinaryNode

public ParseNode.BinaryNode(int tag,
                            java.lang.String file,
                            int line,
                            int column,
                            java.lang.Object child0,
                            java.lang.Object child1)
Method Detail

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