StreamTokenizer.ttype
Class Overview | Class Members |
This Package |
All Packages
Syntax
public int ttype
Description
After a call to the nextToken method, this field
contains the type of the token just read. For a single character
token, its value is the single character, converted to an integer.
For a quoted string token (see , its value is the quote character.
Otherwise, its value is one of the following:
- TT_WORD indicates that the token is a word.
- TT_NUMBER indicates that the token is a number.
- TT_EOL indicates that the end of line has been read.
The field can only have this value if the
eolIsSignificant method has been called with the
argument true.
- TT_EOF indicates that the end of the input stream
has been reached.
See Also
eolIsSignificant, nextToken, quoteChar, TT_EOF, TT_EOL, TT_NUMBER, TT_WORD