static enum Tokens.$PUNCT extends java.lang.Enum<Tokens.$PUNCT> implements Token
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Tokens.$PUNCT.ANGLE |
(package private) static class |
Tokens.$PUNCT.BINOP |
(package private) static class |
Tokens.$PUNCT.BRACE |
(package private) static class |
Tokens.$PUNCT.BRACKET |
(package private) static class |
Tokens.$PUNCT.COMMENT |
(package private) static class |
Tokens.$PUNCT.PAREN |
(package private) static class |
Tokens.$PUNCT.UNOP |
Modifier and Type | Field and Description |
---|---|
private char |
ch |
Modifier and Type | Method and Description |
---|---|
char |
getChar() |
static Tokens.$PUNCT |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Tokens.$PUNCT[] |
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.$PUNCT SEMI
public static final Tokens.$PUNCT DOT
public static final Tokens.$PUNCT Q
public static final Tokens.$PUNCT COLON
public static final Tokens.$PUNCT AT
public static final Tokens.$PUNCT COMMA
public static Tokens.$PUNCT[] values()
for (Tokens.$PUNCT c : Tokens.$PUNCT.values()) System.out.println(c);
public static Tokens.$PUNCT 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
public char getChar()