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_MEMBEREMPTY| 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, valueOfgetBeanProperties, getFields, getFields, getFirstTypeArgument, getPackageName, getPrimaryConstructor, getSimpleName, getSuperType, getType, getTypeArguments, getTypeArguments, getTypeArguments, isAbstract, isAssignable, isEnum, isInterface, isIterablegetGenericTypeannotate, annotate, annotate, annotate, getDocumentation, isFinal, isPrivate, isStaticbooleanValue, 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, getDefaultValues, 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, synthesizeDeclaredAnnotationsByTypehasSimpleAnnotation, hasSimpleDeclaredAnnotationisDeclaredNullable, isNullablepublic 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)
ClassElementisAssignable in interface ClassElementtype - The type to checktrue if and only if the this type is assignable to the secondpublic boolean isArray()
ClassElementisArray in interface ClassElementisArray in interface TypedElementpublic String getName()
public boolean isProtected()
isProtected in interface Elementpublic boolean isPublic()
public Object getNativeType()
ElementgetNativeType in interface Elementpublic AnnotationMetadata getAnnotationMetadata()
AnnotationMetadataProviderAnnotationMetadata.EMPTY_METADATA.getAnnotationMetadata in interface AnnotationMetadataProviderAnnotationMetadatapublic boolean isPrimitive()
TypedElementisPrimitive in interface TypedElement