Top Description Fields Constructors Methods
org.antlr.v4.tool.ast

public Class GrammarASTErrorNode

extends GrammarAST
Class Inheritance
Imports
org.antlr.runtime.Token, .TokenStream, org.antlr.runtime.tree.CommonErrorNode

A node representing erroneous token range in token stream

Field Summary

Modifier and TypeField and Description
pack-priv CommonErrorNode
Inherited from org.antlr.v4.tool.ast.GrammarAST:
atnStategtextOverride

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public int
getType()

Overrides org.antlr.runtime.tree.CommonTree.getType.

Implements org.antlr.runtime.tree.Tree.getType.

Return a token type; needed for tree parsing
public boolean
isNil()

Overrides org.antlr.runtime.tree.CommonTree.isNil.

Implements org.antlr.runtime.tree.Tree.isNil.

Indicates the node is a nil node but may still have children, meaning the tree is a flat list.
public String
toString()

Overrides org.antlr.runtime.tree.CommonTree.toString.

Implements org.antlr.runtime.tree.Tree.toString.

Override to say how a node (not a tree) should look as text
Inherited from org.antlr.v4.tool.ast.GrammarAST:
deleteChilddupNodedupTreegetAllChildrenWithTypegetAltLabelgetChildrenAsArraygetFirstDescendantWithTypegetFirstDescendantWithTypegetNodesWithTypegetNodesWithTypegetNodesWithTypePreorderDFSgetNodesWithTypePreorderDFS_getNodeWithTokenIndexgetOutermostAltNodesetTextsetTypetoTokenStringvisit

Field Detail

delegateback to summary
pack-priv CommonErrorNode delegate

Constructor Detail

GrammarASTErrorNodeback to summary
public GrammarASTErrorNode(TokenStream input, Token start, Token stop, RecognitionException e)

Method Detail

getTextback to summary
public String getText()

Overrides org.antlr.runtime.tree.CommonTree.getText.

Implements org.antlr.runtime.tree.Tree.getText.

Annotations
@Override
getTypeback to summary
public int getType()

Overrides org.antlr.runtime.tree.CommonTree.getType.

Implements org.antlr.runtime.tree.Tree.getType.

Doc from org.antlr.runtime.tree.Tree.getType.

Return a token type; needed for tree parsing

Annotations
@Override
isNilback to summary
public boolean isNil()

Overrides org.antlr.runtime.tree.CommonTree.isNil.

Implements org.antlr.runtime.tree.Tree.isNil.

Doc from org.antlr.runtime.tree.Tree.isNil.

Indicates the node is a nil node but may still have children, meaning the tree is a flat list.

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.antlr.runtime.tree.CommonTree.toString.

Implements org.antlr.runtime.tree.Tree.toString.

Doc from org.antlr.runtime.tree.BaseTree.toString.

Override to say how a node (not a tree) should look as text

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object

Annotations
@Override