Package org.openrewrite.java.tree
Enum Class JavaType.Primitive
- All Implemented Interfaces:
Serializable,Comparable<JavaType.Primitive>,Constable,JavaType
- Enclosing interface:
JavaType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface org.openrewrite.java.tree.JavaType
JavaType.Annotation, JavaType.Array, JavaType.Class, JavaType.FullyQualified, JavaType.GenericTypeVariable, JavaType.Intersection, JavaType.Method, JavaType.MultiCatch, JavaType.Parameterized, JavaType.Primitive, JavaType.ShallowClass, JavaType.Unknown, JavaType.Variable -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface org.openrewrite.java.tree.JavaType
EMPTY_ANNOTATION_VALUE_ARRAY, EMPTY_FULLY_QUALIFIED_ARRAY, EMPTY_JAVA_TYPE_ARRAY, EMPTY_METHOD_ARRAY, EMPTY_STRING_ARRAY, EMPTY_VARIABLE_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable JavaType.PrimitivefromClassName(String className) static @Nullable JavaType.PrimitivefromKeyword(String keyword) booleantoString()static JavaType.PrimitiveReturns the enum constant of this class with the specified name.static JavaType.Primitive[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface org.openrewrite.java.tree.JavaType
getManagedReference, isAssignableFrom, isAssignableFrom, unsafeSetManagedReference, withManagedReference
-
Enum Constant Details
-
Boolean
-
Byte
-
Char
-
Double
-
Float
-
Int
-
Long
-
Short
-
Void
-
String
-
None
-
Null
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
fromKeyword
-
fromClassName
-
getKeyword
-
getClassName
-
toString
- Overrides:
toStringin classEnum<JavaType.Primitive>
-
isNumeric
public boolean isNumeric()
-