Package com.github.javaparser.ast.type
Enum PrimitiveType.Primitive
- java.lang.Object
-
- java.lang.Enum<PrimitiveType.Primitive>
-
- com.github.javaparser.ast.type.PrimitiveType.Primitive
-
- All Implemented Interfaces:
Serializable
,Comparable<PrimitiveType.Primitive>
- Enclosing class:
- PrimitiveType
public static enum PrimitiveType.Primitive extends Enum<PrimitiveType.Primitive>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asString()
ClassOrInterfaceType
toBoxedType()
static PrimitiveType.Primitive
valueOf(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
-
BOOLEAN
public static final PrimitiveType.Primitive BOOLEAN
-
CHAR
public static final PrimitiveType.Primitive CHAR
-
BYTE
public static final PrimitiveType.Primitive BYTE
-
SHORT
public static final PrimitiveType.Primitive SHORT
-
INT
public static final PrimitiveType.Primitive INT
-
LONG
public static final PrimitiveType.Primitive LONG
-
FLOAT
public static final PrimitiveType.Primitive FLOAT
-
DOUBLE
public static final PrimitiveType.Primitive DOUBLE
-
-
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(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 nameNullPointerException
- if the argument is null
-
toBoxedType
public ClassOrInterfaceType toBoxedType()
-
asString
public String asString()
-
-