Package org.jboss.jandex
Enum PrimitiveType.Primitive
- java.lang.Object
-
- java.lang.Enum<PrimitiveType.Primitive>
-
- org.jboss.jandex.PrimitiveType.Primitive
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PrimitiveType.Primitive>
- Enclosing class:
- PrimitiveType
public static enum PrimitiveType.Primitive extends java.lang.Enum<PrimitiveType.Primitive>
Specifies the underlying Java primitive type for aPrimitiveType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
Indicates a primitive boolean typeBYTE
Indicates a primitive byte typeCHAR
Indicates a primitive character typeDOUBLE
Indicates a primitive double typeFLOAT
Indicates a primitive float typeINT
Indicates a primitive integer typeLONG
Indicates a primitive long typeSHORT
Indicates a primitive short type
-
Constructor Summary
Constructors Modifier Constructor Description private
Primitive()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PrimitiveType.Primitive
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PrimitiveType.Primitive[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final PrimitiveType.Primitive BYTE
Indicates a primitive byte type
-
CHAR
public static final PrimitiveType.Primitive CHAR
Indicates a primitive character type
-
DOUBLE
public static final PrimitiveType.Primitive DOUBLE
Indicates a primitive double type
-
FLOAT
public static final PrimitiveType.Primitive FLOAT
Indicates a primitive float type
-
INT
public static final PrimitiveType.Primitive INT
Indicates a primitive integer type
-
LONG
public static final PrimitiveType.Primitive LONG
Indicates a primitive long type
-
SHORT
public static final PrimitiveType.Primitive SHORT
Indicates a primitive short type
-
BOOLEAN
public static final PrimitiveType.Primitive BOOLEAN
Indicates a primitive boolean type
-
-
Method Detail
-
values
public static PrimitiveType.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 (PrimitiveType.Primitive c : PrimitiveType.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 PrimitiveType.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 namejava.lang.NullPointerException
- if the argument is null
-
-