org.extex.ocpware.type
Enum OcpArgumentType

java.lang.Object
  extended by java.lang.Enum<OcpArgumentType>
      extended by org.extex.ocpware.type.OcpArgumentType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OcpArgumentType>

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

This enumeration provides the types for an argument.

Version:
$Revision: 6366 $
Author:
Gerd Neugebauer

Enum Constant Summary
CHARACTER
          The field CHARACTER contains an indicator for a character code.
LABEL
          The field LABEL contains the indicator for a label; i.e.
NUMBER
          The field NUMBER contains an indicator for a number.
STATE
          The field STATE contains an indicator for a state index.
 
Method Summary
static OcpArgumentType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OcpArgumentType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NUMBER

public static final OcpArgumentType NUMBER
The field NUMBER contains an indicator for a number. The corresponding argument is a number.


CHARACTER

public static final OcpArgumentType CHARACTER
The field CHARACTER contains an indicator for a character code.


LABEL

public static final OcpArgumentType LABEL
The field LABEL contains the indicator for a label; i.e. a jump destination.


STATE

public static final OcpArgumentType STATE
The field STATE contains an indicator for a state index.

Method Detail

values

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

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

valueOf

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