Class ReflectionUtils.TypeMetadata
java.lang.Object
io.fluxzero.common.reflection.ReflectionUtils.TypeMetadata
- Enclosing class:
ReflectionUtils
Lazily computed reflection metadata for a single Java type.
This is the central cache for type-level reflection in Fluxzero. It keeps the structural model of a type
together in one place: methods, fields, property descriptors, type annotations, annotated members, cached
property-path accessors, and compiled MemberInvoker instances.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Method Summary
Modifier and TypeMethodDescriptionannotatedFields(Class<? extends Annotation> annotation) annotatedMethods(Class<? extends Annotation> annotation) List<? extends AccessibleObject> annotatedProperties(Class<? extends Annotation> annotation) Optional<? extends AccessibleObject> annotatedProperty(Class<? extends Annotation> annotation) annotatedPropertyInvoker(Class<? extends Annotation> annotation) <T> Optional<T> annotationAs(AnnotatedElement member, Class<? extends Annotation> annotationType, Class<? extends T> returnType) booleandeclaresField(String fieldName) <A extends Annotation>
Optional<A> fieldAnnotation(Field field, Class<? extends Annotation> annotation) fields()<A extends Annotation>
Optional<A> methodAnnotation(Executable executable, Class<? extends Annotation> annotation) <A extends Annotation>
List<A> methodAnnotations(Executable executable, Class<? extends Annotation> annotation) methods()propertyPath(String propertyPath) Class<?> type()<A extends Annotation>
AtypeAnnotation(Class<? extends Annotation> annotationType) Collection<? extends Annotation>
-
Method Details
-
type
-
methods
-
method
-
methods
-
fields
-
field
-
declaresField
-
typeAnnotations
-
typeAnnotation
-
annotatedFields
-
annotatedMethods
-
annotatedProperties
-
annotatedProperty
public Optional<? extends AccessibleObject> annotatedProperty(Class<? extends Annotation> annotation) -
annotatedPropertyInvoker
-
getter
-
setter
-
propertyPath
-
invoker
-
fieldAnnotation
public <A extends Annotation> Optional<A> fieldAnnotation(Field field, Class<? extends Annotation> annotation) -
methodAnnotation
public <A extends Annotation> Optional<A> methodAnnotation(Executable executable, Class<? extends Annotation> annotation) -
methodAnnotations
public <A extends Annotation> List<A> methodAnnotations(Executable executable, Class<? extends Annotation> annotation) -
annotationAs
public <T> Optional<T> annotationAs(AnnotatedElement member, Class<? extends Annotation> annotationType, Class<? extends T> returnType)
-