public interface ClassElement extends TypedElement
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBEREMPTY| Modifier and Type | Method and Description |
|---|---|
default List<PropertyElement> |
getBeanProperties()
Returns the bean properties (getters and setters) for this class element.
|
default List<FieldElement> |
getFields()
Return all the fields of this class element.
|
default List<FieldElement> |
getFields(Predicate<Set<ElementModifier>> modifierFilter)
Return fields contained with the given modifiers include / exclude rules.
|
default Optional<ClassElement> |
getFirstTypeArgument() |
default String |
getPackageName()
The package name.
|
default String |
getSimpleName()
The simple name without the package name.
|
default Optional<ClassElement> |
getSuperType()
Returns the super type of this element or empty if the element has no super type.
|
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, isStaticclassValue, 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, longValuefindAnnotation, findDeclaredAnnotation, getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeboolean isAssignable(String type)
type - The type to checktrue if and only if the this type is assignable to the seconddefault Optional<ClassElement> getSuperType()
@Nullable default ClassElement getType()
getType in interface TypedElementdefault String getSimpleName()
getSimpleName in interface Elementdefault String getPackageName()
default List<PropertyElement> getBeanProperties()
default List<FieldElement> getFields()
default List<FieldElement> getFields(@Nonnull Predicate<Set<ElementModifier>> modifierFilter)
modifierFilter - Can be used to filter fields by modifierdefault boolean isAbstract()
isAbstract in interface Elementdefault 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