edu.umd.cs.findbugs
public class Token extends Object
See Also: 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, String lexeme)
Constructor.
| |
Token(int kind)
Constructor when there is no text.
|
Method Summary | |
---|---|
int | getKind()
Get the kind of token. |
String | getLexeme()
Get the text value of the token. |
Parameters: kind the kind of token lexeme the text value of the token
Parameters: kind the kind of token