ProjetCompil.Global.Src3
Enum NatureOperande

java.lang.Object
  extended by java.lang.Enum<NatureOperande>
      extended by ProjetCompil.Global.Src3.NatureOperande
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NatureOperande>

public enum NatureOperande
extends java.lang.Enum<NatureOperande>

Le type des différentes natures d'opérande de la machine abstraite.


Enum Constant Summary
OpChaine
          Opérande chaîne.
OpDirect
          Opérande direct : pour l'adressage direct par registre.
OpEntier
          Opérande entier : pour l'adressage immédiat entier.
OpEtiq
          Opérande étiquette.
OpIndexe
          Opérande indexé : pour l'adressage indirect indexé avec déplacement.
OpIndirect
          Opérande indirect : pour l'adressage indirect avec déplacement.
OpReel
          Opérande réel : pour l'adressage immédiat réel.
 
Method Summary
static NatureOperande valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NatureOperande[] 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
 

Enum Constant Detail

OpDirect

public static final NatureOperande OpDirect
Opérande direct : pour l'adressage direct par registre.


OpIndirect

public static final NatureOperande OpIndirect
Opérande indirect : pour l'adressage indirect avec déplacement.


OpIndexe

public static final NatureOperande OpIndexe
Opérande indexé : pour l'adressage indirect indexé avec déplacement.


OpEntier

public static final NatureOperande OpEntier
Opérande entier : pour l'adressage immédiat entier.


OpReel

public static final NatureOperande OpReel
Opérande réel : pour l'adressage immédiat réel.


OpChaine

public static final NatureOperande OpChaine
Opérande chaîne.


OpEtiq

public static final NatureOperande OpEtiq
Opérande étiquette.

Method Detail

values

public static NatureOperande[] 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 (NatureOperande c : NatureOperande.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NatureOperande 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