|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overturetool.vdmj.lex.LexToken
public abstract class LexToken
The parent class for all lexical token types.
| Field Summary | |
|---|---|
LexLocation |
location
The textual location of the token. |
Token |
type
The basic type of the token. |
| Constructor Summary | |
|---|---|
LexToken(LexLocation location,
Token type)
Create a token of the given type at the given location. |
|
| Method Summary | |
|---|---|
void |
abort(int number,
java.lang.String msg,
Context ctxt)
|
void |
concern(boolean serious,
int number,
java.lang.String msg)
This is used when a problem would be an error if the type it applies to is unambiguous, or a warning otherwise. |
void |
detail(java.lang.String tag,
java.lang.Object obj)
|
void |
detail2(java.lang.String tag1,
java.lang.Object obj1,
java.lang.String tag2,
java.lang.Object obj2)
|
boolean |
is(Token ttype)
Test whether this token is a given basic type. |
boolean |
isNot(Token ttype)
Test whether this token is not a given basic type. |
void |
report(int number,
java.lang.String msg)
|
java.lang.String |
toString()
|
void |
warning(int number,
java.lang.String msg)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final LexLocation location
public final Token type
| Constructor Detail |
|---|
public LexToken(LexLocation location,
Token type)
location - The location of the token.type - The basic type of the token.| Method Detail |
|---|
public boolean is(Token ttype)
ttype - The type to test.
public boolean isNot(Token ttype)
ttype - The type to test.
public java.lang.String toString()
toString in class java.lang.Object
public void report(int number,
java.lang.String msg)
Definition.report(int, java.lang.String)
public void warning(int number,
java.lang.String msg)
Definition.warning(int, java.lang.String)
public void concern(boolean serious,
int number,
java.lang.String msg)
serious - True if this should be an errornumber - The error number.msg - The problem.
public void abort(int number,
java.lang.String msg,
Context ctxt)
Definition.abort(int, java.lang.String, org.overturetool.vdmj.runtime.Context)
public void detail(java.lang.String tag,
java.lang.Object obj)
Definition.detail(java.lang.String, java.lang.Object)
public void detail2(java.lang.String tag1,
java.lang.Object obj1,
java.lang.String tag2,
java.lang.Object obj2)
Definition.detail2(java.lang.String, java.lang.Object, java.lang.String, java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||