Package edu.umd.cs.findbugs
Class Token
- java.lang.Object
-
- edu.umd.cs.findbugs.Token
-
public class Token extends java.lang.Object
Simple token class.- Author:
- David Hovemeyer
- See Also:
Tokenizer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getKind()
Get the kind of token.java.lang.String
getLexeme()
Get the text value of the token.
-
-
-
Field Detail
-
EOF
public static final int EOF
End of file.- See Also:
- Constant Field Values
-
EOL
public static final int EOL
End of line.- See Also:
- Constant Field Values
-
WORD
public static final int WORD
An ordinary word, number, etc.- See Also:
- Constant Field Values
-
STRING
public static final int STRING
A string or character literal.- See Also:
- Constant Field Values
-
SINGLE
public static final int SINGLE
A single character token.- See Also:
- Constant Field Values
-
COMMENT
public static final int COMMENT
A comment.- See Also:
- Constant Field Values
-
-