Top Description Fields Constructors Methods
org.python.antlr

public Class PythonErrorNode

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

A node representing erroneous token range in token stream

Field Summary

Modifier and TypeField and Description
private CommonErrorNode
Inherited from org.python.antlr.PythonTree:
childrenfrom_future_checked

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public int
public String
public boolean
public String
toString()

Overrides org.python.antlr.PythonTree.toString.

Returns a string representation of the object.

Inherited from org.python.antlr.PythonTree:
acceptaddChildaddChildrencreateChildrenListdeleteChilddottedNameListToStringdumpThisdumpThisdumpThisdupNodefreshenParentAndChildIndexesfreshenParentAndChildIndexesgetCharPositionInLinegetCharStartIndexgetCharStopIndexgetChildgetChildCountgetChildIndexgetChildrengetCol_offsetgetFirstChildWithTypegetLinegetLinenogetNodegetParentgetTokengetTokenStartIndexgetTokenStopIndexrefersDirectlyToreplaceChildrensetCharStartIndexsetCharStopIndexsetChildsetChildIndexsetParentsetTokenStartIndexsetTokenStopIndextoStringTreetraversetraverse

Field Detail

errorNodeback to summary
private CommonErrorNode errorNode

Constructor Detail

PythonErrorNodeback to summary
public PythonErrorNode(TokenStream input, Token start, Token stop, RecognitionException e)
PythonErrorNodeback to summary
public PythonErrorNode(CommonErrorNode errorNode)

Method Detail

getAntlrTypeback to summary
public int getAntlrType()

Overrides org.python.antlr.PythonTree.getAntlrType.

Annotations
@Override
getTextback to summary
public String getText()

Overrides org.python.antlr.PythonTree.getText.

Annotations
@Override
isNilback to summary
public boolean isNil()

Overrides org.python.antlr.PythonTree.isNil.

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.python.antlr.PythonTree.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override