Modifier and Type | Class and Description |
---|---|
(package private) static class |
Tokens.$KW |
(package private) static class |
Tokens.$PUNCT |
Enum Constant and Description |
---|
$COMMENT |
$NUMBER |
$START
Cursor is at a new file.
|
$STRING_LIT |
$WORD |
Modifier and Type | Method and Description |
---|---|
static Tokens |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Tokens[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
write(SourceFileWriter writer) |
public static final Tokens $START
public static final Tokens $COMMENT
public static final Tokens $STRING_LIT
public static final Tokens $WORD
public static final Tokens $NUMBER
public static Tokens[] values()
for (Tokens c : Tokens.values()) System.out.println(c);
public static Tokens valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void write(SourceFileWriter writer) throws java.io.IOException