public static class Lex.Token
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BLOCK_END
Symbol signalling the end of a block.
|
static int |
BLOCK_LINE
Symbol representing an individual line of input within a block.
|
static int |
BLOCK_START
Symbol representing a StartXXX keyword which is to be balanced
by an EndXXX keyword.
|
static int |
COMMENT
Comment symbol which is returned by getTokenOrComment but
not by getToken.
|
static int |
END
Symbol representing the keyword EndFontMetrics.
|
static int |
EOF
Symbol representing the end of the input source.
|
static int |
ERROR
Symbol representing an errorneous state.
|
static int |
KERN_DATA_END
Symbol representing the EndKernData keyword.
|
static int |
KERN_DATA_START
Symbol representing the StartKernData keyword.
|
java.lang.Object |
object
Associated object, if any.
|
static int |
PROPERTY
Keyword symbol that represents the name of a property.
|
static int |
START
Symbol representing the keyword StartFontMetrics.
|
static java.lang.String[] |
SYM_NAME
Table of strings for the individual symbols.
|
int |
symbol
The symbol of this token.
|
static int |
VALUE
Property values and some of the blocks have a value.
|
Constructor and Description |
---|
Token(int symbol,
java.lang.Object object)
Construct a constant token object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Generate a string representation that might be useful
for error messages.
|
boolean |
valid()
Check if it is a valid symbol, i.e.
|
public static final int ERROR
public static final int EOF
public static final int START
public static final int END
public static final int PROPERTY
public static final int COMMENT
public static final int VALUE
public static final int BLOCK_START
public static final int BLOCK_LINE
public static final int BLOCK_END
public static final int KERN_DATA_START
public static final int KERN_DATA_END
public static final java.lang.String[] SYM_NAME
public final int symbol
public final java.lang.Object object
public Token(int symbol, java.lang.Object object)
symbol
- its symbol, must be between ERROR and KERN_DATA_END.object
- its associated object (may be null).public boolean valid()
public java.lang.String toString()
toString
in class java.lang.Object