public class FailFastHandler
extends java.lang.Object
| Constructor and Description |
|---|
FailFastHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(java.lang.String message,
PythonTree t)
Handle (normally throw a
ParseException) possibly recoverable by waiting for further
input. |
void |
error(java.lang.String message,
PythonTree t,
boolean definite)
Handle (normally throw a
ParseException) specifying whether to treat as a final
decision. |
expr |
errorExpr(PythonTree t) |
mod |
errorMod(PythonTree t) |
slice |
errorSlice(PythonTree t) |
stmt |
errorStmt(PythonTree t) |
boolean |
mismatch(org.antlr.runtime.BaseRecognizer br,
org.antlr.runtime.IntStream input,
int ttype,
org.antlr.runtime.BitSet follow) |
void |
recover(org.antlr.runtime.BaseRecognizer br,
org.antlr.runtime.IntStream input,
org.antlr.runtime.RecognitionException re) |
void |
recover(org.antlr.runtime.Lexer lex,
org.antlr.runtime.RecognitionException re) |
java.lang.Object |
recoverFromMismatchedToken(org.antlr.runtime.BaseRecognizer br,
org.antlr.runtime.IntStream input,
int ttype,
org.antlr.runtime.BitSet follow) |
void |
reportError(org.antlr.runtime.BaseRecognizer br,
org.antlr.runtime.RecognitionException re) |
public void reportError(org.antlr.runtime.BaseRecognizer br,
org.antlr.runtime.RecognitionException re)
public void recover(org.antlr.runtime.Lexer lex,
org.antlr.runtime.RecognitionException re)
public void recover(org.antlr.runtime.BaseRecognizer br,
org.antlr.runtime.IntStream input,
org.antlr.runtime.RecognitionException re)
public boolean mismatch(org.antlr.runtime.BaseRecognizer br,
org.antlr.runtime.IntStream input,
int ttype,
org.antlr.runtime.BitSet follow)
throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionExceptionpublic java.lang.Object recoverFromMismatchedToken(org.antlr.runtime.BaseRecognizer br,
org.antlr.runtime.IntStream input,
int ttype,
org.antlr.runtime.BitSet follow)
throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionExceptionpublic expr errorExpr(PythonTree t)
public mod errorMod(PythonTree t)
public slice errorSlice(PythonTree t)
public stmt errorStmt(PythonTree t)
public void error(java.lang.String message,
PythonTree t)
ParseException) possibly recoverable by waiting for further
input.message - text to include.t - not null, root of the PythonTree provoking the error.public void error(java.lang.String message,
PythonTree t,
boolean definite)
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.message - text to include.t - not null, root of the PythonTree provoking the error.definite - true if we cannot recover with more input.