public class Token
extends java.lang.Object
Tokenizer
Modifier and Type | Field | 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 | Description |
---|---|
Token(int kind) |
Constructor when there is no text.
|
Token(int kind,
java.lang.String lexeme) |
Constructor.
|
Modifier and Type | Method | 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
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.