Top Description Fields Constructors Methods
org.antlr.runtime.tree

public Class CommonErrorNode

extends CommonTree
Class Inheritance
Imports
org.antlr.runtime.*

A node representing erroneous token range in token stream

Field Summary

Modifier and TypeField and Description
public IntStream
public Token
public Token
public RecognitionException
Inherited from org.antlr.runtime.tree.CommonTree:
childIndexparentstartIndexstopIndextoken

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.runtime.tree.CommonTree:
dupNodegetCharPositionInLinegetChildIndexgetLinegetParentgetTokengetTokenStartIndexgetTokenStopIndexsetChildIndexsetParentsetTokenStartIndexsetTokenStopIndexsetUnknownTokenBoundaries

Field Detail

inputback to summary
public IntStream input
startback to summary
public Token start
stopback to summary
public Token stop
trappedExceptionback to summary
public RecognitionException trappedException

Constructor Detail

CommonErrorNodeback to summary
public CommonErrorNode(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