Package org.antlr.v4.runtime.tree
Class ErrorNodeImpl
java.lang.Object
org.antlr.v4.runtime.tree.TerminalNodeImpl
org.antlr.v4.runtime.tree.ErrorNodeImpl
- All Implemented Interfaces:
ErrorNode,ParseTree,SyntaxTree,TerminalNode,Tree
Represents a token that was consumed during resynchronization
rather than during a valid match operation. For example,
we will create this kind of a node during single token insertion
and deletion as well as during "consume until error recovery set"
upon no viable alternative exceptions.
-
Field Summary
Fields inherited from class org.antlr.v4.runtime.tree.TerminalNodeImpl
parent, symbol -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(ParseTreeVisitor<? extends T> visitor) TheParseTreeVisitorneeds a double dispatch method.Methods inherited from class org.antlr.v4.runtime.tree.TerminalNodeImpl
getChild, getChildCount, getParent, getPayload, getSourceInterval, getSymbol, getText, 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
getChild, getParent, getText, setParent, toStringTreeMethods inherited from interface org.antlr.v4.runtime.tree.SyntaxTree
getSourceIntervalMethods inherited from interface org.antlr.v4.runtime.tree.TerminalNode
getSymbolMethods inherited from interface org.antlr.v4.runtime.tree.Tree
getChildCount, getPayload, toStringTree
-
Constructor Details
-
ErrorNodeImpl
-
-
Method Details
-
accept
Description copied from interface:ParseTreeTheParseTreeVisitorneeds a double dispatch method.- Specified by:
acceptin interfaceParseTree- Overrides:
acceptin classTerminalNodeImpl
-