public static enum CodeExpression.Code extends java.lang.Enum<CodeExpression.Code>
Enum Constant and Description |
---|
JAVA
Indicator that code is in Java.
|
NONE
Indicator that this is not code.
|
SPICE
Indicator that code is in Lisp.
|
TCL
Indicator that code is in TCL.
|
Modifier and Type | Method and Description |
---|---|
static CodeExpression.Code |
getByCBits(int cBits)
Method to convert a bits value to a Code object.
|
static CodeExpression.Code |
getByOrdinal(int ordinal)
Method to get a Code constant by its ordinal number.
|
int |
getCFlags()
Method to return the bits value of this code type.
|
static java.util.Iterator<CodeExpression.Code> |
getCodes()
Method to get an iterator over all Code types.
|
java.lang.String |
toString()
Method to return a printable version of this Code.
|
static CodeExpression.Code |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CodeExpression.Code[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CodeExpression.Code JAVA
public static final CodeExpression.Code SPICE
public static final CodeExpression.Code TCL
public static final CodeExpression.Code NONE
public static CodeExpression.Code[] values()
for (CodeExpression.Code c : CodeExpression.Code.values()) System.out.println(c);
public static CodeExpression.Code 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 int getCFlags()
public java.lang.String toString()
toString
in class java.lang.Enum<CodeExpression.Code>
public static java.util.Iterator<CodeExpression.Code> getCodes()
public static CodeExpression.Code getByCBits(int cBits)
cBits
- the bits value (from I/O).public static CodeExpression.Code getByOrdinal(int ordinal)
ordinal
- the ordinal number of this Code constant ( as returned by ordinal()