ProjetCompil.Global.Src3
Enum Registre
java.lang.Object
java.lang.Enum<Registre>
ProjetCompil.Global.Src3.Registre
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Registre>
public enum Registre
- extends java.lang.Enum<Registre>
Le type des registres de la machine abstraite.
Les registres R0 à R15 sont des registres banalisés.
Le registre GB est la base globale.
Le registre LB est la base locale (utile pour coder les fonctions ou
procédures).
Method Summary |
static Registre |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Registre[] |
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 |
R0
public static final Registre R0
R1
public static final Registre R1
R2
public static final Registre R2
R3
public static final Registre R3
R4
public static final Registre R4
R5
public static final Registre R5
R6
public static final Registre R6
R7
public static final Registre R7
R8
public static final Registre R8
R9
public static final Registre R9
R10
public static final Registre R10
R11
public static final Registre R11
R12
public static final Registre R12
R13
public static final Registre R13
R14
public static final Registre R14
R15
public static final Registre R15
GB
public static final Registre GB
LB
public static final Registre LB
values
public static Registre[] 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 (Registre c : Registre.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Registre 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