Interface TreeMember

All Superinterfaces:
MoveCheckable, ParseTree, SyntaxTree, Tree
All Known Implementing Classes:
Directive, EmptyTerminalNode, ExtendedContext, ExtendedTerminalNode, ParsableTerminalCSTNode, StringNode, Tensor, TerminalCSTNode, UnparsableCSTNode

public interface TreeMember extends ParseTree, MoveCheckable
A tree member has a parent and its tokens can be omitted. This interface serves as the basis for all tree parse tree nodes.
  • Method Details

    • getParent

      ExtendedContext getParent()
      Gets the parent of this node. The parent is an ExtendedContext because in this tree all parents should be an extended context.
      Specified by:
      getParent in interface ParseTree
      Specified by:
      getParent in interface Tree
    • processRemoval

      void processRemoval()
      Omits the tokens this node encompasses from the next local root. For terminal nodes this is always at least the parent's local root. Other nodes may be their own local root.