Class MemberResolver
java.lang.Object
com.fasterxml.classmate.MemberResolver
- All Implemented Interfaces:
Serializable
Builder class used to completely resolve members (fields, methods,
constructors) of
ResolvedTypes (generics-aware classes).- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanConfiguration setting that determines whether members fromObjectare included or not; by default false meaning that they are not.protected Filter<RawConstructor> Filter used for determining whether given constructor is to be included in aggregation of all constructors.Filter used for determining whether given field (static or member) is to be included in aggregation of all fields.Filter used for determining whether given method (static or member) is to be included in aggregation of all methods.protected final TypeResolverType resolved needed for resolving types of member objects (method argument and return; field types; constructor argument types) -
Constructor Summary
ConstructorsConstructorDescriptionMemberResolver(TypeResolver typeResolver) Constructor for resolver that does not includejava.lang.Objectin type hierarchy -
Method Summary
Modifier and TypeMethodDescriptionprivate void_addOverrides(List<HierarchicType> typesWithOverrides, Set<ClassKey> seenTypes, ResolvedType override) private void_addOverrides(List<HierarchicType> typesWithOverrides, Set<ClassKey> seenTypes, Class<?> override) protected void_gatherTypes(ResolvedType currentType, Set<ClassKey> seenTypes, List<ResolvedType> types) resolve(ResolvedType mainType, AnnotationConfiguration annotationConfig, AnnotationOverrides annotationOverrides) Method for constructing hierarchy object needed to fully resolve member information, including basic type flattening as well as addition of mix-in types in appropriate positions.setIncludeLangObject(boolean state) Configuration method for specifying whether members ofjava.lang.Objectare to be included in resolution; if false, no members fromObjectare to be included; if true, will be included.
-
Field Details
-
_typeResolver
Type resolved needed for resolving types of member objects (method argument and return; field types; constructor argument types) -
_cfgIncludeLangObject
protected boolean _cfgIncludeLangObjectConfiguration setting that determines whether members fromObjectare included or not; by default false meaning that they are not. -
_fieldFilter
-
_methodFilter
-
_constructorFilter
Filter used for determining whether given constructor is to be included in aggregation of all constructors.
-
-
Constructor Details
-
MemberResolver
Constructor for resolver that does not includejava.lang.Objectin type hierarchy
-
-
Method Details
-
setIncludeLangObject
Configuration method for specifying whether members ofjava.lang.Objectare to be included in resolution; if false, no members fromObjectare to be included; if true, will be included. -
setFieldFilter
-
setMethodFilter
-
setConstructorFilter
-
resolve
public ResolvedTypeWithMembers resolve(ResolvedType mainType, AnnotationConfiguration annotationConfig, AnnotationOverrides annotationOverrides) Method for constructing hierarchy object needed to fully resolve member information, including basic type flattening as well as addition of mix-in types in appropriate positions.- Parameters:
mainType- Resolved type that is the starting point (i.e. the leaf class) for member resolution.annotationConfig- Configuration of annotation types; which ones to include, how to inheritannotationOverrides- Definitions of annotation overrides to use, if any (may be null)
-
_addOverrides
private void _addOverrides(List<HierarchicType> typesWithOverrides, Set<ClassKey> seenTypes, Class<?> override) -
_addOverrides
private void _addOverrides(List<HierarchicType> typesWithOverrides, Set<ClassKey> seenTypes, ResolvedType override) -
_gatherTypes
protected void _gatherTypes(ResolvedType currentType, Set<ClassKey> seenTypes, List<ResolvedType> types)
-