Class ParseNode.BinaryNode

  • Enclosing class:
    ParseNode

    private static class ParseNode.BinaryNode
    extends ParseNode
    a parse node with two children
    • Field Detail

      • child0

        private java.lang.Object child0
      • child1

        private java.lang.Object child1
    • Constructor Detail

      • BinaryNode

        public 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
        Parameters:
        idx - the child index
        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