Class CommonErrorNode

All Implemented Interfaces:
Tree

public class CommonErrorNode extends CommonTree
A node representing erroneous token range in token stream
  • Field Details

  • Constructor Details

  • Method Details

    • 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
    • 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 CommonTree
    • getText

      public String getText()
      Specified by:
      getText in interface Tree
      Overrides:
      getText in class CommonTree
    • toString

      public 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