Package org.jboss.jandex
Enum PrimitiveType.Primitive
- All Implemented Interfaces:
Serializable
,Comparable<PrimitiveType.Primitive>
,java.lang.constant.Constable
- Enclosing class:
PrimitiveType
Specifies the underlying Java primitive type for a
PrimitiveType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates a primitive boolean typeIndicates a primitive byte typeIndicates a primitive character typeIndicates a primitive double typeIndicates a primitive float typeIndicates a primitive integer typeIndicates a primitive long typeIndicates a primitive short type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PrimitiveType.Primitive
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 Details
-
BYTE
Indicates a primitive byte type -
CHAR
Indicates a primitive character type -
DOUBLE
Indicates a primitive double type -
FLOAT
Indicates a primitive float type -
INT
Indicates a primitive integer type -
LONG
Indicates a primitive long type -
SHORT
Indicates a primitive short type -
BOOLEAN
Indicates a primitive boolean type
-
-
Constructor Details
-
Primitive
private Primitive()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-