Class StringTerminalNode
java.lang.Object
org.antlr.v4.runtime.tree.TerminalNodeImpl
io.github.douira.glsl_transformer.generic.StringTerminalNode
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTree,org.antlr.v4.runtime.tree.SyntaxTree,org.antlr.v4.runtime.tree.TerminalNode,org.antlr.v4.runtime.tree.Tree
public class StringTerminalNode
extends org.antlr.v4.runtime.tree.TerminalNodeImpl
String node provides a terminal node with arbitrary contents. This is useful
for inserting strings into the printed code such as comments.
Only use this terminal node for non-parsed tokens like comments, whitespace
or preprocessor directives. For all other syntax features, use the local
roots system. Parse tree search doesn't work inside string nodes as they are
not parsed.
-
Field Summary
Fields inherited from class org.antlr.v4.runtime.tree.TerminalNodeImpl
parent, symbol -
Constructor Summary
ConstructorsConstructorDescriptionStringTerminalNode(String text) Creates a new string node with the given string content. -
Method Summary
Methods inherited from class org.antlr.v4.runtime.tree.TerminalNodeImpl
accept, getChild, getChildCount, getParent, getPayload, getSourceInterval, getSymbol, getText, setParent, toString, toStringTree, toStringTree
-
Constructor Details
-
StringTerminalNode
Creates a new string node with the given string content.- Parameters:
text- The string to create a token for
-