Class UnparsableASTNode
java.lang.Object
org.antlr.v4.runtime.tree.TerminalNodeImpl
io.github.douira.glsl_transformer.tree.ExtendedTerminalNode
io.github.douira.glsl_transformer.ast.ASTNode
io.github.douira.glsl_transformer.ast.UnparsableASTNode
- All Implemented Interfaces:
MoveCheckable,TreeMember,ParseTree,SyntaxTree,TerminalNode,Tree
- Direct Known Subclasses:
StringNode
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.-
Field Summary
Fields inherited from class org.antlr.v4.runtime.tree.TerminalNodeImpl
parent, symbol -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.github.douira.glsl_transformer.ast.ASTNode
getPrintedMethods inherited from class io.github.douira.glsl_transformer.tree.ExtendedTerminalNode
getParent, getPreviousNode, omitTokens, setPreviousNodeMethods inherited from class org.antlr.v4.runtime.tree.TerminalNodeImpl
accept, getChild, getChildCount, getPayload, getSourceInterval, getSymbol, setParent, toString, toStringTree, toStringTreeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.antlr.v4.runtime.tree.ParseTree
accept, getChild, setParent, toStringTreeMethods inherited from interface org.antlr.v4.runtime.tree.SyntaxTree
getSourceIntervalMethods inherited from interface org.antlr.v4.runtime.tree.Tree
getChildCount, getPayload, toStringTree
-
Constructor Details
-
UnparsableASTNode
public UnparsableASTNode()
-
-
Method Details
-
getText
- Specified by:
getTextin interfaceParseTree- Overrides:
getTextin classTerminalNodeImpl
-