public class ParseException
extends java.lang.RuntimeException
| Modifier and Type | Field and Description |
|---|---|
boolean |
approximateLineInfo |
int |
c |
int |
charPositionInLine |
boolean |
definite |
int |
index |
org.antlr.runtime.IntStream |
input |
int |
line |
java.lang.Object |
node |
org.antlr.runtime.Token |
token |
| Constructor and Description |
|---|
ParseException() |
ParseException(java.lang.String message) |
ParseException(java.lang.String message,
int lin,
int charPos) |
ParseException(java.lang.String message,
PythonTree n)
Construct a
ParseException specifying message and tree. |
ParseException(java.lang.String message,
PythonTree n,
boolean definite)
Construct a
ParseException specifying whether to treat as a final decision. |
ParseException(java.lang.String message,
org.antlr.runtime.RecognitionException r) |
| Modifier and Type | Method and Description |
|---|---|
PyObject |
getType() |
void |
setType(PyObject t) |
public transient org.antlr.runtime.IntStream input
public int index
public org.antlr.runtime.Token token
public java.lang.Object node
public int c
public int line
public int charPositionInLine
public boolean approximateLineInfo
public boolean definite
public ParseException()
public ParseException(java.lang.String message,
int lin,
int charPos)
public ParseException(java.lang.String message)
public ParseException(java.lang.String message,
PythonTree n,
boolean definite)
ParseException specifying whether to treat as a final decision. When we
use this constructor in the REPL, and definite=true, Jython will take it that the
problem is a definite syntax or semantic error, not that we just haven't finished a
multi-line construct that will be valid eventually.message - text to include.n - not null, root of the PythonTree provoking the error.definite - true if we cannot recover with more input.public ParseException(java.lang.String message,
PythonTree n)
ParseException specifying message and tree. When we use this constructor
in the REPL, Jython will assume the problem is an incomplete input (as when you wrap a line
inside parentheses or are inside another nested construct), and a "... " prompt is likely to
be produced.message - text to include.n - not null, root of the PythonTree provoking the error.public ParseException(java.lang.String message,
org.antlr.runtime.RecognitionException r)