Class ParseNode.UnaryNode

  • Enclosing class:
    ParseNode

    private static class ParseNode.UnaryNode
    extends ParseNode
    a parse node with one child
    • Field Detail

      • child0

        private java.lang.Object child0
    • Constructor Detail

      • UnaryNode

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