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 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 TerminalNodeImpl
getChild, getChildCount, getParent, getPayload, getSourceInterval, getSymbol, getText, setParent, toString, toStringTree, toStringTreeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface SyntaxTree
getSourceIntervalMethods inherited from interface TerminalNode
getSymbolMethods inherited from interface 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
-