|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
jml2b.exceptions.Jml2bException
jml2b.exceptions.ParseException
jml2b.exceptions.TokenException
A specialisation of the ParseException
class that is used
when unexpected tokens are encountered.
They usually indicate errors in the Jack parser.
Constructor Summary | |
TokenException(JmlFile f,
jml.LineAST tree,
java.lang.String method,
int expected,
int got)
Creates a new TokenException instance. |
|
TokenException(JmlFile f,
jml.LineAST tree,
java.lang.String method,
java.lang.String expected,
int got)
Creates a new TokenException instance. |
|
TokenException(JmlFile f,
jml.LineAST tree,
java.lang.String method,
java.lang.String expected,
java.lang.String got)
Creates a new TokenException instance. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TokenException(JmlFile f, jml.LineAST tree, java.lang.String method, java.lang.String expected, java.lang.String got)
TokenException
instance.
Note that the method correspond to the Jack method performing the parsing.
f
- that contains the unexpected token.tree
- the AST containing the unexpected token.method
- the name of the method that throwed the exception.expected
- the name of the token(s) that was (were) expected.got
- the name of the token that has been encountered.public TokenException(JmlFile f, jml.LineAST tree, java.lang.String method, java.lang.String expected, int got)
TokenException
instance.
Note that the method correspond to the Jack method performing the parsing.
f
- that contains the unexpected token.tree
- the AST containing the unexpected token.method
- the name of the method that throwed the exception.expected
- the name of the token(s) that was (were) expected.got
- the value of the token that has been encountered.public TokenException(JmlFile f, jml.LineAST tree, java.lang.String method, int expected, int got)
TokenException
instance.
Note that the method correspond to the Jack method performing the parsing.
f
- that contains the unexpected token.tree
- the AST containing the unexpected token.method
- the name of the method that throwed the exception.expected
- the value of the token that was expected.got
- the value of the token that has been encountered.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |