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
public class ErrorNodeImpl extends TerminalNodeImpl implements ErrorNode
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 Constructor Description ErrorNodeImpl(Token token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
accept(ParseTreeVisitor<? extends T> visitor)
TheParseTreeVisitor
needs a double dispatch method.-
Methods inherited from class org.antlr.v4.runtime.tree.TerminalNodeImpl
getChild, getChildCount, getParent, getPayload, getSourceInterval, getSymbol, getText, setParent, toString, toStringTree, toStringTree
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.antlr.v4.runtime.tree.ParseTree
getChild, getParent, getText, setParent, toStringTree
-
Methods inherited from interface org.antlr.v4.runtime.tree.SyntaxTree
getSourceInterval
-
Methods inherited from interface org.antlr.v4.runtime.tree.TerminalNode
getSymbol
-
Methods inherited from interface org.antlr.v4.runtime.tree.Tree
getChildCount, getPayload, toStringTree
-
-
-
-
Constructor Detail
-
ErrorNodeImpl
public ErrorNodeImpl(Token token)
-
-
Method Detail
-
accept
public <T> T accept(ParseTreeVisitor<? extends T> visitor)
Description copied from interface:ParseTree
TheParseTreeVisitor
needs a double dispatch method.- Specified by:
accept
in interfaceParseTree
- Overrides:
accept
in classTerminalNodeImpl
-
-