Enum Type.Primitives
- java.lang.Object
-
- java.lang.Enum<Type.Primitives>
-
- org.sonar.plugins.java.api.semantic.Type.Primitives
-
- All Implemented Interfaces:
Serializable,Comparable<Type.Primitives>
- Enclosing interface:
- Type
public static enum Type.Primitives extends Enum<Type.Primitives>
Primitive java types.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Type.PrimitivesvalueOf(String name)Returns the enum constant of this type with the specified name.static Type.Primitives[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final Type.Primitives BYTE
-
CHAR
public static final Type.Primitives CHAR
-
SHORT
public static final Type.Primitives SHORT
-
INT
public static final Type.Primitives INT
-
LONG
public static final Type.Primitives LONG
-
FLOAT
public static final Type.Primitives FLOAT
-
DOUBLE
public static final Type.Primitives DOUBLE
-
BOOLEAN
public static final Type.Primitives BOOLEAN
-
-
Method Detail
-
values
public static Type.Primitives[] 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.Primitives c : Type.Primitives.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.Primitives 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
-
-