public interface ClassElement extends TypedElement
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBER
EMPTY
Modifier and Type | Method and Description |
---|---|
default List<PropertyElement> |
getBeanProperties()
Returns the bean properties (getters and setters) for this class element.
|
default Optional<ClassElement> |
getFirstTypeArgument() |
default String |
getPackageName()
The package name.
|
default String |
getSimpleName()
The simple name without the package name.
|
default ClassElement |
getType() |
default Map<String,ClassElement> |
getTypeArguments() |
default boolean |
isAbstract() |
default boolean |
isArray()
Returns whether the class element is an array.
|
default boolean |
isAssignable(Class<?> type)
Tests whether one type is assignable to another.
|
boolean |
isAssignable(String type)
Tests whether one type is assignable to another.
|
default boolean |
isInterface() |
default boolean |
isIterable() |
getDocumentation, getName, getNativeType, isFinal, isPrivate, isProtected, isPublic, isStatic
classValue, classValue, classValue, classValue, doubleValue, findAnnotation, findDeclaredAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByType, 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, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isTrue, isTrue, longValue
findAnnotation, findDeclaredAnnotation, getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
boolean isAssignable(String type)
type
- The type to checktrue
if and only if the this type is assignable to the second@Nullable default ClassElement getType()
getType
in interface TypedElement
default String getSimpleName()
getSimpleName
in interface Element
default String getPackageName()
default List<PropertyElement> getBeanProperties()
default boolean isAbstract()
isAbstract
in interface Element
default boolean isInterface()
default boolean isArray()
default boolean isIterable()
default Map<String,ClassElement> getTypeArguments()
default Optional<ClassElement> getFirstTypeArgument()
default boolean isAssignable(Class<?> type)
type
- The type to checktrue
if and only if the this type is assignable to the second