Package antlr

Class ASTNULLType

  • All Implemented Interfaces:
    AST

    public class ASTNULLType
    extends java.lang.Object
    implements AST
    There is only one instance of this class
    • Constructor Detail

      • ASTNULLType

        public ASTNULLType()
    • Method Detail

      • addChild

        public void addChild​(AST c)
        Description copied from interface: AST
        Add a (rightmost) child to this node
        Specified by:
        addChild in interface AST
      • equals

        public boolean equals​(AST t)
        Specified by:
        equals in interface AST
      • equalsList

        public boolean equalsList​(AST t)
        Specified by:
        equalsList in interface AST
      • equalsListPartial

        public boolean equalsListPartial​(AST t)
        Specified by:
        equalsListPartial in interface AST
      • equalsTree

        public boolean equalsTree​(AST t)
        Specified by:
        equalsTree in interface AST
      • equalsTreePartial

        public boolean equalsTreePartial​(AST t)
        Specified by:
        equalsTreePartial in interface AST
      • getFirstChild

        public AST getFirstChild()
        Description copied from interface: AST
        Get the first child of this node; null if no children
        Specified by:
        getFirstChild in interface AST
      • getNextSibling

        public AST getNextSibling()
        Description copied from interface: AST
        Get the next sibling in line after this one
        Specified by:
        getNextSibling in interface AST
      • getText

        public java.lang.String getText()
        Description copied from interface: AST
        Get the token text for this node
        Specified by:
        getText in interface AST
      • getType

        public int getType()
        Description copied from interface: AST
        Get the token type for this node
        Specified by:
        getType in interface AST
      • getLine

        public int getLine()
        Specified by:
        getLine in interface AST
      • getColumn

        public int getColumn()
        Specified by:
        getColumn in interface AST
      • getNumberOfChildren

        public int getNumberOfChildren()
        Description copied from interface: AST
        Get number of children of this node; if leaf, returns 0
        Specified by:
        getNumberOfChildren in interface AST
      • initialize

        public void initialize​(int t,
                               java.lang.String txt)
        Specified by:
        initialize in interface AST
      • initialize

        public void initialize​(AST t)
        Specified by:
        initialize in interface AST
      • initialize

        public void initialize​(Token t)
        Specified by:
        initialize in interface AST
      • setFirstChild

        public void setFirstChild​(AST c)
        Description copied from interface: AST
        Set the first child of a node.
        Specified by:
        setFirstChild in interface AST
      • setNextSibling

        public void setNextSibling​(AST n)
        Description copied from interface: AST
        Set the next sibling after this one.
        Specified by:
        setNextSibling in interface AST
      • setText

        public void setText​(java.lang.String text)
        Description copied from interface: AST
        Set the token text for this node
        Specified by:
        setText in interface AST
      • setType

        public void setType​(int ttype)
        Description copied from interface: AST
        Set the token type for this node
        Specified by:
        setType in interface AST
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface AST
        Overrides:
        toString in class java.lang.Object
      • toStringList

        public java.lang.String toStringList()
        Specified by:
        toStringList in interface AST
      • toStringTree

        public java.lang.String toStringTree()
        Specified by:
        toStringTree in interface AST