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 Details

    • child0

      private Object child0
  • Constructor Details

    • UnaryNode

      public UnaryNode(int tag, String file, int line, int column, Object child0)
  • 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 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