Java Annotation Indexer 1.0.0.Final

org.jboss.jandex
Enum Type.Kind

java.lang.Object
  extended by java.lang.Enum<Type.Kind>
      extended by org.jboss.jandex.Type.Kind
All Implemented Interfaces:
Serializable, Comparable<Type.Kind>
Enclosing class:
Type

public static enum Type.Kind
extends Enum<Type.Kind>

Represents a "kind" of Type.

Author:
Jason T. Greene

Enum Constant Summary
ARRAY
          A Java array
CLASS
          A Java class, interface, or annotation
PRIMITIVE
          A Java primitive (boolean, byte, short, char, int, long, float, double)
VOID
          Used to designate a Java method that returns nothing
 
Method Summary
static Type.Kind fromOrdinal(int ordinal)
          This method exists since the brainiacs that designed java thought that not only should enums be complex objects instead of simple integral types like every other sane language, they also should have the sole mechanism to reverse an ordinal (values() method) perform an array copy.
static Type.Kind valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Type.Kind[] 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

CLASS

public static final Type.Kind CLASS
A Java class, interface, or annotation


ARRAY

public static final Type.Kind ARRAY
A Java array


PRIMITIVE

public static final Type.Kind PRIMITIVE
A Java primitive (boolean, byte, short, char, int, long, float, double)


VOID

public static final Type.Kind VOID
Used to designate a Java method that returns nothing

Method Detail

values

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

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

valueOf

public static Type.Kind valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

fromOrdinal

public static Type.Kind fromOrdinal(int ordinal)
This method exists since the brainiacs that designed java thought that not only should enums be complex objects instead of simple integral types like every other sane language, they also should have the sole mechanism to reverse an ordinal (values() method) perform an array copy.


Java Annotation Indexer 1.0.0.Final

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.