Interface TreeMember
- All Superinterfaces:
MoveCheckable,ParseTree,SyntaxTree,Tree
- All Known Implementing Classes:
Directive,EmptyTerminalNode,ExtendedContext,ExtendedTerminalNode,ParsableTerminalCSTNode,StringNode,Tensor,TerminalCSTNode,UnparsableCSTNode
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 Summary
Modifier and TypeMethodDescriptionGets the parent of this node.voidOmits the tokens this node encompasses from the next local root.Methods inherited from interface io.github.douira.glsl_transformer.cst.traversal.MoveCheckable
getPreviousNode, setPreviousNodeMethods inherited from interface org.antlr.v4.runtime.tree.ParseTree
accept, getChild, getText, setParent, toStringTreeMethods inherited from interface org.antlr.v4.runtime.tree.SyntaxTree
getSourceIntervalMethods inherited from interface org.antlr.v4.runtime.tree.Tree
getChildCount, getPayload, toStringTree
-
Method Details
-
getParent
ExtendedContext getParent()Gets the parent of this node. The parent is anExtendedContextbecause in this tree all parents should be an extended context. -
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.
-