net.sf.rej.java.instruction
Enum StackElementType

java.lang.Object
  extended by java.lang.Enum<StackElementType>
      extended by net.sf.rej.java.instruction.StackElementType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StackElementType>

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

An enumeration which identifies the type of a stack element.

Author:
Sami Koivu

Enum Constant Summary
ADDRESS
           
ANY
          A type for type 1 computational values, that is: booleans, bytes, chars, shorts, ints, floats, references, and return addresses.
CAT2
           
DOUBLE
          A type for double values.
FLOAT
          A type for float values.
INT
          A type for an int value.
LONG
          A type for long values.
REF
          A type for object references (including arrays an exceptions).
 
Method Summary
static StackElementType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StackElementType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INT

public static final StackElementType INT
A type for an int value. Other than java ints this type is also used by booleans, bytes, shorts and chars.


LONG

public static final StackElementType LONG
A type for long values.


REF

public static final StackElementType REF
A type for object references (including arrays an exceptions).


DOUBLE

public static final StackElementType DOUBLE
A type for double values.


FLOAT

public static final StackElementType FLOAT
A type for float values.


ANY

public static final StackElementType ANY
A type for type 1 computational values, that is: booleans, bytes, chars, shorts, ints, floats, references, and return addresses. A set of two of these might also be a type 2 computational value, that is: long or double.


CAT2

public static final StackElementType CAT2

ADDRESS

public static final StackElementType ADDRESS
Method Detail

values

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

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

valueOf

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