public interface ClassElement extends Element
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 List<Element> |
getElements(VisitorContext visitorContext) |
default Optional<ClassElement> |
getFirstTypeArgument() |
default Map<String,ClassElement> |
getTypeArguments() |
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 |
isIterable() |
getDocumentation, getName, getNativeType, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic
classValue, classValue, classValue, classValue, doubleValue, findAnnotation, findDeclaredAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByType, getDeclaredAnnotationNames, getDeclaredAnnotationNamesTypeByStereotype, getDeclaredAnnotationNameTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByType, getDefaultValue, getDefaultValue, 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 seconddefault List<Element> getElements(VisitorContext visitorContext)
visitorContext
- The visitor context.default List<PropertyElement> getBeanProperties()
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