Top Constructors Methods
org.python.antlr

public Class FailFastHandler

extends Object
implements ErrorHandler
Class Inheritance
All Implemented Interfaces
org.python.antlr.ErrorHandler
Imports
org.antlr.runtime.BaseRecognizer, .BitSet, .IntStream, .Lexer, .MismatchedTokenException, .RecognitionException, org.python.antlr.base.expr, .mod, .slice, .stmt

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 void
error(String
text to include.
message
,
PythonTree
not null, root of the PythonTree provoking the error.
t
,
boolean
true if we cannot recover with more input.
definite
)

Overrides default org.python.antlr.ErrorHandler.error.

Handle (normally throw a ParseException) specifying whether to treat as a final decision.

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

Constructor Detail

FailFastHandlerback to summary
public FailFastHandler()

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.

Annotations
@Override
errorback to summary
public void error(String message, PythonTree t, boolean definite)

Overrides default org.python.antlr.ErrorHandler.error.

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

Handle (normally throw a ParseException) specifying whether to treat as a final decision. In the REPL, when definite=true, Jython will signal a definite syntax or semantic error, not recoverable by waiting for further input.

Parameters
message:String

text to include.

t:PythonTree

not null, root of the PythonTree provoking the error.

definite:boolean

true if we cannot recover with more input.

Annotations
@Override
errorExprback to summary
public expr errorExpr(PythonTree t)

Implements org.python.antlr.ErrorHandler.errorExpr.

Annotations
@Override
errorModback to summary
public mod errorMod(PythonTree t)

Implements org.python.antlr.ErrorHandler.errorMod.

Annotations
@Override
errorSliceback to summary
public slice errorSlice(PythonTree t)

Implements org.python.antlr.ErrorHandler.errorSlice.

Annotations
@Override
errorStmtback to summary
public stmt errorStmt(PythonTree t)

Implements org.python.antlr.ErrorHandler.errorStmt.

Annotations
@Override
messageback to summary
private String message(BaseRecognizer br, RecognitionException re)
mismatchback to summary
public boolean mismatch(BaseRecognizer br, IntStream input, int ttype, BitSet follow) throws RecognitionException

Implements org.python.antlr.ErrorHandler.mismatch.

Returns:boolean

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

True if the caller should handle the mismatch

Annotations
@Override

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

Implements org.python.antlr.ErrorHandler.recover.

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

Implements org.python.antlr.ErrorHandler.recover.

Annotations
@Override
recoverFromMismatchedTokenback to summary
public Object recoverFromMismatchedToken(BaseRecognizer br, IntStream input, int ttype, BitSet follow) throws RecognitionException

Implements org.python.antlr.ErrorHandler.recoverFromMismatchedToken.

Returns:Object

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

null if the caller should handle the mismatch

Annotations
@Override

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

Implements org.python.antlr.ErrorHandler.reportError.

Annotations
@Override