public class Token
extends java.lang.Object
Tokenizer
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
Token(int kind)
Constructor when there is no text.
|
Token(int kind,
java.lang.String lexeme)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getKind()
Get the kind of token.
|
java.lang.String |
getLexeme()
Get the text value of the token.
|
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
SpotBugs is licensed under the LGPL.