com.fasterxml.classmate.MemberResolver .
Note that instances are not thread-safe, as the expectation is that instances will not be shared (unlike raw members or resolved types)
| Modifier and Type | Class and Description |
|---|---|
| private static class | ResolvedTypeWithMembers.AnnotationHandler
Helper class we use to reduce number of calls to |
| Modifier and Type | Field and Description |
|---|---|
| protected final ResolvedTypeWithMembers. | _annotationHandler
Handler for resolving annotation information |
| protected Filter | _constructorFilter
Filter to use for selecting constructors to include |
| protected ResolvedConstructor[] | |
| protected Filter | _fieldFilter
Filter to use for selecting fields to include |
| protected final HierarchicType | _mainType
Leaf of the type hierarchy, i.e. type from which this hierarchy was generated. |
| protected ResolvedField[] | |
| protected ResolvedMethod[] | |
| protected Filter | _methodFilter
Filter to use for selecting methods to include |
| protected ResolvedField[] | |
| protected ResolvedMethod[] | |
| protected final TypeResolver | _typeResolver
Need to be able to resolve member types still |
| protected final HierarchicType[] | _types
All types that hierarchy contains, in order of increasing precedence (that is, later entries override members of earlier members) |
| protected static final AnnotationConfiguration | DEFAULT_ANNOTATION_CONFIG
Default annotation configuration is to ignore all annotations types. |
| private static final ResolvedConstructor[] | |
| private static final ResolvedField[] | |
| private static final ResolvedMethod[] | |
| private static final ResolvedType[] |
| Access | Constructor and Description |
|---|---|
| public | ResolvedTypeWithMembers(TypeResolver typeResolver, AnnotationConfiguration annotationConfig, HierarchicType mainType, HierarchicType[] types, Filter<RawConstructor> constructorFilter, Filter<RawField> fieldFilter, Filter<RawMethod> methodFilter)
|
| Modifier and Type | Method and Description |
|---|---|
| public List | allTypesAndOverrides()
Accessor for getting full type hierarchy as priority-ordered list, from the lowest precedence to highest precedence (main type, its mix-in overrides) |
| public ResolvedConstructor[] | |
| public ResolvedField[] | |
| public ResolvedMethod[] | |
| public ResolvedField[] | getStaticFields()
Method for finding all static fields of the main type (except for ones possibly filtered out by filter) and applying annotation overrides, if any, to annotations. |
| public ResolvedMethod[] | getStaticMethods()
Method for finding all static methods of the main type (except for ones possibly filtered out by filter) and applying annotation overrides, if any, to annotations. |
| public List | mainTypeAndOverrides()
Accessor for getting subset of type hierarchy which only contains main type and possible overrides (mix-ins) it has, but not supertypes or their overrides. |
| protected boolean | |
| public List | |
| protected boolean | |
| protected ResolvedConstructor | |
| protected ResolvedConstructor[] | resolveConstructors()
Method that will actually resolve full information (types, annotations) for constructors of the main type. |
| protected ResolvedField | |
| protected ResolvedField[] | |
| protected ResolvedMethod[] | |
| protected ResolvedMethod | |
| protected ResolvedField[] | resolveStaticFields()
Method for fully resolving static field definitions and associated annotations. |
| protected ResolvedMethod[] | resolveStaticMethods()
Method that will actually resolve full information (types, annotations) for static methods, using configured filter. |
| public int |
| _annotationHandler | back to summary |
|---|---|
| protected final ResolvedTypeWithMembers. Handler for resolving annotation information | |
| _constructorFilter | back to summary |
|---|---|
| protected Filter<RawConstructor> _constructorFilter Filter to use for selecting constructors to include | |
| _constructors | back to summary |
|---|---|
| protected ResolvedConstructor[] _constructors | |
| _fieldFilter | back to summary |
|---|---|
| protected Filter<RawField> _fieldFilter Filter to use for selecting fields to include | |
| _mainType | back to summary |
|---|---|
| protected final HierarchicType _mainType Leaf of the type hierarchy, i.e. type from which this hierarchy was generated. | |
| _memberFields | back to summary |
|---|---|
| protected ResolvedField[] _memberFields | |
| _memberMethods | back to summary |
|---|---|
| protected ResolvedMethod[] _memberMethods | |
| _methodFilter | back to summary |
|---|---|
| protected Filter<RawMethod> _methodFilter Filter to use for selecting methods to include | |
| _staticFields | back to summary |
|---|---|
| protected ResolvedField[] _staticFields | |
| _staticMethods | back to summary |
|---|---|
| protected ResolvedMethod[] _staticMethods | |
| _typeResolver | back to summary |
|---|---|
| protected final TypeResolver _typeResolver Need to be able to resolve member types still | |
| _types | back to summary |
|---|---|
| protected final HierarchicType[] _types All types that hierarchy contains, in order of increasing precedence (that is, later entries override members of earlier members) | |
| DEFAULT_ANNOTATION_CONFIG | back to summary |
|---|---|
| protected static final AnnotationConfiguration DEFAULT_ANNOTATION_CONFIG Default annotation configuration is to ignore all annotations types. | |
| NO_RESOLVED_CONSTRUCTORS | back to summary |
|---|---|
| private static final ResolvedConstructor[] NO_RESOLVED_CONSTRUCTORS | |
| NO_RESOLVED_FIELDS | back to summary |
|---|---|
| private static final ResolvedField[] NO_RESOLVED_FIELDS | |
| NO_RESOLVED_METHODS | back to summary |
|---|---|
| private static final ResolvedMethod[] NO_RESOLVED_METHODS | |
| NO_RESOLVED_TYPES | back to summary |
|---|---|
| private static final ResolvedType[] NO_RESOLVED_TYPES | |
| ResolvedTypeWithMembers | back to summary |
|---|---|
| public ResolvedTypeWithMembers(TypeResolver typeResolver, AnnotationConfiguration annotationConfig, HierarchicType mainType, HierarchicType[] types, Filter<RawConstructor> constructorFilter, Filter<RawField> fieldFilter, Filter<RawMethod> methodFilter) | |
| allTypesAndOverrides | back to summary |
|---|---|
| public List Accessor for getting full type hierarchy as priority-ordered list, from the lowest precedence to highest precedence (main type, its mix-in overrides) | |
| getConstructors | back to summary |
|---|---|
| public ResolvedConstructor[] getConstructors() | |
| getMemberFields | back to summary |
|---|---|
| public ResolvedField[] getMemberFields() | |
| getMemberMethods | back to summary |
|---|---|
| public ResolvedMethod[] getMemberMethods() | |
| getStaticFields | back to summary |
|---|---|
| public ResolvedField[] getStaticFields() Method for finding all static fields of the main type (except for ones possibly filtered out by filter) and applying annotation overrides, if any, to annotations.
| |
| getStaticMethods | back to summary |
|---|---|
| public ResolvedMethod[] getStaticMethods() Method for finding all static methods of the main type (except for ones possibly filtered out by filter) and applying annotation overrides, if any, to annotations. | |
| mainTypeAndOverrides | back to summary |
|---|---|
| public List Accessor for getting subset of type hierarchy which only contains main type and possible overrides (mix-ins) it has, but not supertypes or their overrides. | |
| methodCanInherit | back to summary |
|---|---|
| protected boolean methodCanInherit(Annotation annotation) | |
| overridesOnly | back to summary |
|---|---|
| public List Accessor for finding just overrides for the main type (if any). | |
| parameterCanInherit | back to summary |
|---|---|
| protected boolean parameterCanInherit(Annotation annotation) | |
| resolveConstructor | back to summary |
|---|---|
| protected ResolvedConstructor resolveConstructor(RawConstructor raw) Method for resolving individual constructor completely | |
| resolveConstructors | back to summary |
|---|---|
| protected ResolvedConstructor[] resolveConstructors() Method that will actually resolve full information (types, annotations) for constructors of the main type. | |
| resolveField | back to summary |
|---|---|
| protected ResolvedField resolveField(RawField raw) Method for resolving individual field completely | |
| resolveMemberFields | back to summary |
|---|---|
| protected ResolvedField[] resolveMemberFields() Method for fully resolving field definitions and associated annotations. Neither field definitions nor associated annotations inherit, but we may still need to add annotation overrides, as well as filter out filters and annotations that caller is not interested in. | |
| resolveMemberMethods | back to summary |
|---|---|
| protected ResolvedMethod[] resolveMemberMethods() | |
| resolveMethod | back to summary |
|---|---|
| protected ResolvedMethod resolveMethod(RawMethod raw) Method for resolving individual method completely | |
| resolveStaticFields | back to summary |
|---|---|
| protected ResolvedField[] resolveStaticFields() Method for fully resolving static field definitions and associated annotations. Neither field definitions nor associated annotations inherit, but we may still need to add annotation overrides, as well as filter out filters and annotations that caller is not interested in.
| |
| resolveStaticMethods | back to summary |
|---|---|
| protected ResolvedMethod[] resolveStaticMethods() Method that will actually resolve full information (types, annotations) for static methods, using configured filter. | |
| size | back to summary |
|---|---|
| public int size() | |
AnnotationConfiguration;
mostly because determination may be expensive.
| Modifier and Type | Field and Description |
|---|---|
| private final AnnotationConfiguration | |
| private HashMap | |
| private HashMap | |
| private HashMap | |
| private HashMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public AnnotationInclusion | |
| public AnnotationInclusion |
| _annotationConfig | back to summary |
|---|---|
| private final AnnotationConfiguration _annotationConfig | |
| _constructorInclusions | back to summary |
|---|---|
| private HashMap<Class<? extends Annotation>, AnnotationInclusion> _constructorInclusions | |
| _fieldInclusions | back to summary |
|---|---|
| private HashMap<Class<? extends Annotation>, AnnotationInclusion> _fieldInclusions | |
| _methodInclusions | back to summary |
|---|---|
| private HashMap<Class<? extends Annotation>, AnnotationInclusion> _methodInclusions | |
| _parameterInclusions | back to summary |
|---|---|
| private HashMap<Class<? extends Annotation>, AnnotationInclusion> _parameterInclusions | |
| AnnotationHandler | back to summary |
|---|---|
| public AnnotationHandler(AnnotationConfiguration annotationConfig) | |
| includeConstructorAnnotation | back to summary |
|---|---|
| public boolean includeConstructorAnnotation(Annotation ann) | |
| includeFieldAnnotation | back to summary |
|---|---|
| public boolean includeFieldAnnotation(Annotation ann) | |
| includeMethodAnnotation | back to summary |
|---|---|
| public boolean includeMethodAnnotation(Annotation ann) | |
| includeParameterAnnotation | back to summary |
|---|---|
| public boolean includeParameterAnnotation(Annotation ann) | |
| methodInclusion | back to summary |
|---|---|
| public AnnotationInclusion methodInclusion(Annotation ann) | |
| parameterInclusion | back to summary |
|---|---|
| public AnnotationInclusion parameterInclusion(Annotation ann) | |