net.sourceforge.czt.parser.z
Enum TokenName
java.lang.Object
java.lang.Enum<TokenName>
net.sourceforge.czt.parser.z.TokenName
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<TokenName>, Token
public enum TokenName
- extends java.lang.Enum<TokenName>
- implements Token
An enumeration of Z tokens.
|
Method Summary |
java.lang.String |
getName()
|
java.lang.Object |
getSpelling()
|
java.lang.String |
spelling()
|
static TokenName |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TokenName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
TEXT
public static final TokenName TEXT
DECORWORD
public static final TokenName DECORWORD
NUMERAL
public static final TokenName NUMERAL
NUMSTROKE
public static final TokenName NUMSTROKE
INSTROKE
public static final TokenName INSTROKE
OUTSTROKE
public static final TokenName OUTSTROKE
NEXTSTROKE
public static final TokenName NEXTSTROKE
LPAREN
public static final TokenName LPAREN
RPAREN
public static final TokenName RPAREN
LSQUARE
public static final TokenName LSQUARE
RSQUARE
public static final TokenName RSQUARE
LBRACE
public static final TokenName LBRACE
RBRACE
public static final TokenName RBRACE
LBIND
public static final TokenName LBIND
RBIND
public static final TokenName RBIND
LDATA
public static final TokenName LDATA
RDATA
public static final TokenName RDATA
ZED
public static final TokenName ZED
AX
public static final TokenName AX
SCH
public static final TokenName SCH
GENAX
public static final TokenName GENAX
GENSCH
public static final TokenName GENSCH
END
public static final TokenName END
NL
public static final TokenName NL
values
public static TokenName[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (TokenName c : TokenName.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TokenName valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
getName
public java.lang.String getName()
- Specified by:
getName in interface Token
getSpelling
public java.lang.Object getSpelling()
- Specified by:
getSpelling in interface Token
spelling
public java.lang.String spelling()
- Specified by:
spelling in interface Token
Copyright © 2003-2007 Community Z Tools Project. All Rights Reserved.