Package edu.umd.cs.findbugs
Class Token
- java.lang.Object
-
- edu.umd.cs.findbugs.Token
-
public class Token extends java.lang.ObjectSimple token class.- See Also:
Tokenizer
-
-
Field Summary
Fields Modifier and Type Field Description static intCOMMENTA comment.static intEOFEnd of file.static intEOLEnd of line.private intkindprivate java.lang.Stringlexemestatic intSINGLEA single character token.static intSTRINGA string or character literal.static intWORDAn ordinary word, number, etc.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetKind()Get the kind of token.java.lang.StringgetLexeme()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
-
kind
private final int kind
-
lexeme
private final java.lang.String lexeme
-
-