org.eclipse.xtext.common.types.util
Enum Primitives.Primitive

java.lang.Object
  extended by java.lang.Enum<Primitives.Primitive>
      extended by org.eclipse.xtext.common.types.util.Primitives.Primitive
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Primitives.Primitive>
Enclosing class:
Primitives

public static enum Primitives.Primitive
extends java.lang.Enum<Primitives.Primitive>


Enum Constant Summary
Boolean
           
Byte
           
Char
           
Double
           
Float
           
Int
           
Long
           
Short
           
Void
           
 
Method Summary
static Primitives.Primitive valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Primitives.Primitive[] 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

Byte

public static final Primitives.Primitive Byte

Short

public static final Primitives.Primitive Short

Char

public static final Primitives.Primitive Char

Int

public static final Primitives.Primitive Int

Long

public static final Primitives.Primitive Long

Float

public static final Primitives.Primitive Float

Double

public static final Primitives.Primitive Double

Void

public static final Primitives.Primitive Void

Boolean

public static final Primitives.Primitive Boolean
Method Detail

values

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

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

valueOf

public static Primitives.Primitive 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