Top Fields Constructors Methods
org.python.antlr

public Class RecordingErrorHandler

extends Object
implements ErrorHandler
Class Inheritance
All Implemented Interfaces
org.python.antlr.ErrorHandler
Imports
org.antlr.runtime.BaseRecognizer, .BitSet, .IntStream, .Lexer, .RecognitionException, org.python.antlr.ast.ErrorExpr, .ErrorMod, .ErrorSlice, .ErrorStmt, org.python.antlr.base.expr, .mod, .slice, .stmt, java.util.ArrayList, .List

Field Summary

Modifier and TypeField and Description
public List<RecognitionException>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
error(String
text to include.
message
,
PythonTree
not null, root of the PythonTree provoking the error.
t
)

Implements org.python.antlr.ErrorHandler.error.

Handle (normally throw a ParseException) possibly recoverable by waiting for further input.

public expr
public mod
public slice
public stmt
public boolean
public void
public void
public Object
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

errsback to summary
public List<RecognitionException> errs

Constructor Detail

RecordingErrorHandlerback to summary
public RecordingErrorHandler()

Method Detail

errorback to summary
public void error(String message, PythonTree t)

Implements org.python.antlr.ErrorHandler.error.

Doc from org.python.antlr.ErrorHandler.error.

Handle (normally throw a ParseException) possibly recoverable by waiting for further input.

Parameters
message:String

text to include.

t:PythonTree

not null, root of the PythonTree provoking the error.

errorExprback to summary
public expr errorExpr(PythonTree t)

Implements org.python.antlr.ErrorHandler.errorExpr.

errorModback to summary
public mod errorMod(PythonTree t)

Implements org.python.antlr.ErrorHandler.errorMod.

errorSliceback to summary
public slice errorSlice(PythonTree t)

Implements org.python.antlr.ErrorHandler.errorSlice.

errorStmtback to summary
public stmt errorStmt(PythonTree t)

Implements org.python.antlr.ErrorHandler.errorStmt.

mismatchback to summary
public boolean mismatch(BaseRecognizer br, IntStream input, int ttype, BitSet follow)

Implements org.python.antlr.ErrorHandler.mismatch.

Returns:boolean

Doc from org.python.antlr.ErrorHandler.mismatch.

True if the caller should handle the mismatch

recoverback to summary
public void recover(Lexer lex, RecognitionException re)

Implements org.python.antlr.ErrorHandler.recover.

recoverback to summary
public void recover(BaseRecognizer br, IntStream input, RecognitionException re)

Implements org.python.antlr.ErrorHandler.recover.

recoverFromMismatchedTokenback to summary
public Object recoverFromMismatchedToken(BaseRecognizer br, IntStream input, int ttype, BitSet follow)

Implements org.python.antlr.ErrorHandler.recoverFromMismatchedToken.

Returns:Object

Doc from org.python.antlr.ErrorHandler.recoverFromMismatchedToken.

null if the caller should handle the mismatch

reportErrorback to summary
public void reportError(BaseRecognizer br, RecognitionException re)

Implements org.python.antlr.ErrorHandler.reportError.