Enum ASTNode.Opcode
Object
Enum<ASTNode.Opcode>
ASTNode.Opcode
- All Implemented Interfaces:
- Serializable, Comparable<ASTNode.Opcode>
- Enclosing class:
- ASTNode
static enum ASTNode.Opcode
- extends Enum<ASTNode.Opcode>
Operator codes.
Method Summary |
String |
toString()
Returns the string representation of this Opcode. |
static ASTNode.Opcode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ASTNode.Opcode[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
PLUS
public static final ASTNode.Opcode PLUS
MINUS
public static final ASTNode.Opcode MINUS
UMINUS
public static final ASTNode.Opcode UMINUS
TIMES
public static final ASTNode.Opcode TIMES
DIV
public static final ASTNode.Opcode DIV
NOT
public static final ASTNode.Opcode NOT
AND
public static final ASTNode.Opcode AND
OR
public static final ASTNode.Opcode OR
EQ
public static final ASTNode.Opcode EQ
NOTEQ
public static final ASTNode.Opcode NOTEQ
LESS
public static final ASTNode.Opcode LESS
GREATER
public static final ASTNode.Opcode GREATER
LESSEQ
public static final ASTNode.Opcode LESSEQ
GREATEREQ
public static final ASTNode.Opcode GREATEREQ
values
public static final ASTNode.Opcode[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(ASTNode.Opcode c : ASTNode.Opcode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static ASTNode.Opcode 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
toString
public String toString()
- Returns the string representation of this Opcode.
- Overrides:
toString
in class Enum<ASTNode.Opcode>
- Returns:
- the pname.