public final class PrimitiveElement extends java.lang.Object implements ClassElement
| Modifier and Type | Field and Description | 
|---|---|
static PrimitiveElement | 
VOID  | 
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBEREMPTY| Modifier and Type | Method and Description | 
|---|---|
AnnotationMetadata | 
getAnnotationMetadata()
Supplies the metadata. 
 | 
int | 
getArrayDimensions()
If the type is an array, the number of dimensions. 
 | 
java.lang.String | 
getName()  | 
java.lang.Object | 
getNativeType()
Returns the native underlying type. 
 | 
boolean | 
isArray()
Is the type an array. 
 | 
boolean | 
isAssignable(java.lang.String type)
Tests whether one type is assignable to another. 
 | 
boolean | 
isPrimitive()
Whether the type is primitive. 
 | 
boolean | 
isProtected()  | 
boolean | 
isPublic()  | 
ClassElement | 
toArray()
Converts the array representation of this primitive type. 
 | 
static PrimitiveElement | 
valueOf(java.lang.String name)  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBeanProperties, getDefaultConstructor, getFields, getFields, getFirstTypeArgument, getPackageName, getPrimaryConstructor, getSimpleName, getSuperType, getType, getTypeArguments, getTypeArguments, getTypeArguments, isAssignable, isEnum, isInterface, isIterablegetGenericTypeannotate, annotate, annotate, annotate, getDocumentation, isAbstract, isFinal, isPrivate, isStaticbooleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, doubleValue, doubleValue, doubleValue, enumValue, enumValue, enumValue, enumValue, enumValues, enumValues, enumValues, enumValues, 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, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, 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, synthesizeDeclaredAnnotationsByTypeisDeclaredNonNull, isDeclaredNullable, isNonNull, isNullablepublic static final PrimitiveElement VOID
public boolean isAssignable(java.lang.String type)
ClassElementisAssignable in interface ClassElementtype - The type to checktrue if and only if the this type is assignable to the secondpublic boolean isArray()
TypedElementisArray in interface TypedElementpublic int getArrayDimensions()
TypedElementgetArrayDimensions in interface TypedElement@NonNull public java.lang.String getName()
public boolean isProtected()
isProtected in interface Elementpublic boolean isPublic()
@NonNull public java.lang.Object getNativeType()
ElementgetNativeType in interface Elementpublic AnnotationMetadata getAnnotationMetadata()
AnnotationMetadataProviderAnnotationMetadata.EMPTY_METADATA.getAnnotationMetadata in interface AnnotationMetadataProviderAnnotationMetadatapublic ClassElement toArray()
toArray in interface ClassElementpublic boolean isPrimitive()
TypedElementisPrimitive in interface TypedElementpublic static PrimitiveElement valueOf(java.lang.String name)