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

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

private static class ParseNode.NullaryNode
extends ParseNode

a parse node with no children


Field Summary
 
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.NullaryNode(int tag, java.lang.String file, int line, int column)
           
 
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
 

Constructor Detail

ParseNode.NullaryNode

public ParseNode.NullaryNode(int tag,
                             java.lang.String file,
                             int line,
                             int column)
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:
athe display representation of this node