Class ParseNode.NullaryNode

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

private static class ParseNode.NullaryNode extends ParseNode
a parse node with no children
  • Constructor Details

    • NullaryNode

      public NullaryNode(int tag, String file, int line, int column)
  • Method Details

    • 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 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
      Parameters:
      idx - the child index
      Returns:
      the nth child for this node
    • getText

      public String getText()
      get the display representation of this node
      Specified by:
      getText in class ParseNode
      Returns:
      athe display representation of this node