|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.findbugs.Token
public class Token
Simple token class.
Tokenizer| Field Summary | |
|---|---|
static int |
COMMENT
A comment. |
static int |
EOF
End of file. |
static int |
EOL
End of line. |
static int |
SINGLE
A single character token. |
static int |
STRING
A string or character literal. |
static int |
WORD
An ordinary word, number, etc. |
| Constructor Summary | |
|---|---|
Token(int kind)
Constructor when there is no text. |
|
Token(int kind,
java.lang.String lexeme)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getKind()
Get the kind of token. |
java.lang.String |
getLexeme()
Get the text value of the token. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int EOF
public static final int EOL
public static final int WORD
public static final int STRING
public static final int SINGLE
public static final int COMMENT
| Constructor Detail |
|---|
public Token(int kind,
java.lang.String lexeme)
kind - the kind of tokenlexeme - the text value of the tokenpublic Token(int kind)
kind - the kind of token| Method Detail |
|---|
public int getKind()
public java.lang.String getLexeme()
|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||