Class ANTLRParser.GrammarASTErrorNode

  • All Implemented Interfaces:
    Tree
    Enclosing class:
    ANTLRParser

    private static class ANTLRParser.GrammarASTErrorNode
    extends GrammarAST
    • Method Detail

      • isNil

        public boolean isNil()
        Description copied from interface: Tree
        Indicates the node is a nil node but may still have children, meaning the tree is a flat list.
        Specified by:
        isNil in interface Tree
        Overrides:
        isNil in class CommonTree
      • setText

        public void setText​(java.lang.String value)
        Overrides:
        setText in class GrammarAST
      • getType

        public int getType()
        Description copied from interface: Tree
        Return a token type; needed for tree parsing
        Specified by:
        getType in interface Tree
        Overrides:
        getType in class GrammarAST
      • setType

        public void setType​(int value)
        Overrides:
        setType in class GrammarAST
      • toString

        public java.lang.String toString()
        Description copied from class: BaseTree
        Override to say how a node (not a tree) should look as text
        Specified by:
        toString in interface Tree
        Overrides:
        toString in class CommonTree