tip.node
Enum EExp
java.lang.Object
java.lang.Enum<EExp>
tip.node.EExp
- All Implemented Interfaces:
- Serializable, Comparable<EExp>
public enum EExp
- extends Enum<EExp>
Method Summary |
static EExp |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EExp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
DEREF
public static final EExp DEREF
POINTER
public static final EExp POINTER
FUNCTION_PTR_CALL
public static final EExp FUNCTION_PTR_CALL
VAR
public static final EExp VAR
BINOP
public static final EExp BINOP
INPUT
public static final EExp INPUT
FUNCTION_CALL
public static final EExp FUNCTION_CALL
NULL
public static final EExp NULL
MALLOC
public static final EExp MALLOC
INT_CONST
public static final EExp INT_CONST
values
public static EExp[] 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 (EExp c : EExp.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static EExp valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null