ProjetCompil.Global.Src3
Enum Operation
java.lang.Object
java.lang.Enum<Operation>
ProjetCompil.Global.Src3.Operation
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Operation>
public enum Operation
- extends java.lang.Enum<Operation>
Le type des opérations de la machine abstraite.
Method Summary |
int |
getArite()
L'arité de cette opération. |
static Operation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Operation[] |
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 |
RTS
public static final Operation RTS
RNL
public static final Operation RNL
RINT
public static final Operation RINT
RFLOAT
public static final Operation RFLOAT
WINT
public static final Operation WINT
WFLOAT
public static final Operation WFLOAT
WNL
public static final Operation WNL
HALT
public static final Operation HALT
BSR
public static final Operation BSR
BRA
public static final Operation BRA
BEQ
public static final Operation BEQ
BNE
public static final Operation BNE
BGT
public static final Operation BGT
BLT
public static final Operation BLT
BGE
public static final Operation BGE
BLE
public static final Operation BLE
BOV
public static final Operation BOV
SEQ
public static final Operation SEQ
SNE
public static final Operation SNE
SGT
public static final Operation SGT
SLT
public static final Operation SLT
SGE
public static final Operation SGE
SLE
public static final Operation SLE
SOV
public static final Operation SOV
ADDSP
public static final Operation ADDSP
SUBSP
public static final Operation SUBSP
PEA
public static final Operation PEA
PUSH
public static final Operation PUSH
POP
public static final Operation POP
TSTO
public static final Operation TSTO
WSTR
public static final Operation WSTR
LOAD
public static final Operation LOAD
STORE
public static final Operation STORE
LEA
public static final Operation LEA
ADD
public static final Operation ADD
SUB
public static final Operation SUB
MUL
public static final Operation MUL
OPP
public static final Operation OPP
DIV
public static final Operation DIV
MOD
public static final Operation MOD
CMP
public static final Operation CMP
INT
public static final Operation INT
FLOAT
public static final Operation FLOAT
values
public static Operation[] 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 (Operation c : Operation.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Operation 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
getArite
public int getArite()
- L'arité de cette opération. L'arité correspond au nombre
d'opérandes attendu par cette opération.