Class ParseNode.QuaternaryNode

  • Enclosing class:
    ParseNode

    private static class ParseNode.QuaternaryNode
    extends ParseNode
    a parse node with four children
    • Field Detail

      • child0

        private java.lang.Object child0
      • child1

        private java.lang.Object child1
      • child2

        private java.lang.Object child2
      • child3

        private java.lang.Object child3
    • Constructor Detail

      • QuaternaryNode

        public QuaternaryNode​(int tag,
                              java.lang.String file,
                              int line,
                              int column,
                              java.lang.Object child0,
                              java.lang.Object child1,
                              java.lang.Object child2,
                              java.lang.Object child3)
    • 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