public enum JavaPrimitiveElement extends Enum<JavaPrimitiveElement> implements ClassElement, AnnotationMetadataDelegate
Enum Constant and Description |
---|
BOOLEAN |
BOOLEAN_ARRAY |
BYTE |
BYTE_ARRAY |
CHAR |
CHAR_ARRAY |
DOUBLE |
DOUBLE_ARRAY |
FLOAT |
FLOAT_ARRAY |
INT |
INT_ARRAY |
LONG |
LONG_ARRAY |
SHORT |
SHORT_ARRAY |
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBER
EMPTY
Modifier and Type | Method and Description |
---|---|
AnnotationMetadata |
getAnnotationMetadata()
Supplies the metadata.
|
String |
getName() |
Object |
getNativeType()
Returns the native underlying type.
|
boolean |
isArray()
Returns whether the class element is an array.
|
boolean |
isAssignable(String type)
Tests whether one type is assignable to another.
|
boolean |
isPrimitive()
Whether the type is primitive.
|
boolean |
isProtected() |
boolean |
isPublic() |
static JavaPrimitiveElement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaPrimitiveElement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getBeanProperties, getFields, getFields, getFirstTypeArgument, getPackageName, getPrimaryConstructor, getSimpleName, getSuperType, getType, getTypeArguments, getTypeArguments, getTypeArguments, isAbstract, isAssignable, isEnum, isInterface, isIterable
getGenericType
annotate, annotate, annotate, annotate, getDocumentation, isFinal, isPrivate, isStatic
booleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, doubleValue, doubleValue, doubleValue, enumValue, enumValue, enumValue, enumValue, findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotation, getAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByType, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasStereotype, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isTrue, isTrue, longValue, longValue, stringValue, stringValue, stringValue, stringValue, stringValues, stringValues, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
public static final JavaPrimitiveElement INT
public static final JavaPrimitiveElement CHAR
public static final JavaPrimitiveElement BOOLEAN
public static final JavaPrimitiveElement LONG
public static final JavaPrimitiveElement FLOAT
public static final JavaPrimitiveElement DOUBLE
public static final JavaPrimitiveElement SHORT
public static final JavaPrimitiveElement BYTE
public static final JavaPrimitiveElement INT_ARRAY
public static final JavaPrimitiveElement CHAR_ARRAY
public static final JavaPrimitiveElement BOOLEAN_ARRAY
public static final JavaPrimitiveElement LONG_ARRAY
public static final JavaPrimitiveElement FLOAT_ARRAY
public static final JavaPrimitiveElement DOUBLE_ARRAY
public static final JavaPrimitiveElement SHORT_ARRAY
public static final JavaPrimitiveElement BYTE_ARRAY
public static JavaPrimitiveElement[] values()
for (JavaPrimitiveElement c : JavaPrimitiveElement.values()) System.out.println(c);
public static JavaPrimitiveElement valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isAssignable(String type)
ClassElement
isAssignable
in interface ClassElement
type
- The type to checktrue
if and only if the this type is assignable to the secondpublic boolean isArray()
ClassElement
isArray
in interface ClassElement
isArray
in interface TypedElement
public String getName()
public boolean isProtected()
isProtected
in interface Element
public boolean isPublic()
public Object getNativeType()
Element
getNativeType
in interface Element
public AnnotationMetadata getAnnotationMetadata()
AnnotationMetadataProvider
AnnotationMetadata.EMPTY_METADATA
.getAnnotationMetadata
in interface AnnotationMetadataProvider
AnnotationMetadata
public boolean isPrimitive()
TypedElement
isPrimitive
in interface TypedElement