public interface MemberElement extends Element
ClassElement
.
The getDeclaringType()
method returns the class that declares the element.EMPTY_ELEMENT_ARRAY
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBER
EMPTY
Modifier and Type | Method and Description |
---|---|
ClassElement |
getDeclaringType() |
default Set<ElementModifier> |
getModifiers() |
default ClassElement |
getOwningType()
The owing type is the type that owns this element.
|
default boolean |
isAccessible()
Returns whether this member element can be invoked or retrieved at runtime.
|
default boolean |
isAccessible(ClassElement callingType)
Returns whether this member element can be invoked or retrieved at runtime.
|
default boolean |
isReflectionRequired()
Returns whether this member element will require reflection to invoke or retrieve at runtime.
|
default boolean |
isReflectionRequired(ClassElement callingType)
Returns whether this member element will require reflection to invoke or retrieve at runtime.
|
annotate, annotate, annotate, annotate, annotate, getDescription, getDescription, getDocumentation, getName, getNativeType, getSimpleName, isAbstract, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, removeAnnotation, removeAnnotation, removeAnnotationIf, removeStereotype, removeStereotype
booleanValue, 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, findRepeatableAnnotation, findRepeatableAnnotation, getAnnotation, getAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByType, getDeclaredMetadata, getDeclaredStereotypeAnnotationNames, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, getStereotypeAnnotationNames, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasPropertyExpressions, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isRepeatableAnnotation, isRepeatableAnnotation, isTrue, isTrue, longValue, longValue, stringValue, stringValue, stringValue, stringValue, stringValues, stringValues, stringValues, stringValues, synthesize, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getAnnotationValuesByName, getAnnotationValuesByStereotype, getDeclaredAnnotationValuesByName, getValues, hasDeclaredStereotype, isAnnotationPresent, isDeclaredAnnotationPresent
isDeclaredNonNull, isDeclaredNullable, isNonNull, isNullable
getAnnotationMetadata
ClassElement getDeclaringType()
default ClassElement getOwningType()
getDeclaringType()
in the case of inheritance since this method will return the subclass that owners the inherited member,
whilst getDeclaringType()
will return the super class that declares the type.default Set<ElementModifier> getModifiers()
getModifiers
in interface Element
ElementModifier
types for this class elementdefault boolean isReflectionRequired()
This method uses getOwningType()
as the calling type for this method.
true
if reflection is required.default boolean isReflectionRequired(@NonNull ClassElement callingType)
callingType
- The calling typetrue
if reflection is required.default boolean isAccessible()
This method uses isReflectionRequired()
with a checks if the reflection access is allowed.
By checking for ReflectiveAccess
annotation.
true
if is accessible.default boolean isAccessible(@NonNull ClassElement callingType)
This method uses isReflectionRequired()
with a checks if the reflection access is allowed.
By checking for ReflectiveAccess
annotation.
callingType
- The calling typetrue
if is accessible.