Class UnparsableASTNode

All Implemented Interfaces:
MoveCheckable, TreeMember, ParseTree, SyntaxTree, TerminalNode, Tree
Direct Known Subclasses:
StringNode

public abstract class UnparsableASTNode extends ASTNode
The unparsable AST node is basically just a wrapper around a terminal node that contains a custom string. The only difference being that it's treated in a special way by the printer. The string it produces with getText() is directly inserted instead of being passed through the print interval system as a token.
  • Constructor Details

    • UnparsableASTNode

      public UnparsableASTNode()
  • Method Details

    • getText

      public String getText()
      Specified by:
      getText in interface ParseTree
      Overrides:
      getText in class TerminalNodeImpl
    • doNewlineInsertion

      public boolean doNewlineInsertion()
      If true, the printer will insert a newline before each group of consecutive unparsable AST nodes.
      Returns:
      If newline insertion should happen with this node