Top Description Fields Constructors Methods
com.fasterxml.classmate

public Class MemberResolver

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Annotations
@SuppressWarnings:serial
Imports
java.io.Serializable, java.util.*, com.fasterxml.classmate.members.*, com.fasterxml.classmate.util.ClassKey

Builder class used to completely resolve members (fields, methods, constructors) of ResolvedTypes (generics-aware classes).

Field Summary

Modifier and TypeField and Description
protected boolean
_cfgIncludeLangObject

Configuration setting that determines whether members from java.lang.Object are included or not; by default false meaning that they are not.

protected Filter<RawConstructor>
_constructorFilter

Filter used for determining whether given constructor is to be included in aggregation of all constructors.

protected Filter<RawField>
_fieldFilter

Filter used for determining whether given field (static or member) is to be included in aggregation of all fields.

protected Filter<RawMethod>
_methodFilter

Filter used for determining whether given method (static or member) is to be included in aggregation of all methods.

protected final TypeResolver
_typeResolver

Type resolved needed for resolving types of member objects (method argument and return; field types; constructor argument types)

Constructor Summary

AccessConstructor and Description
public
MemberResolver(TypeResolver typeResolver)

Constructor for resolver that does not include java.lang.Object in type hierarchy

Method Summary

Modifier and TypeMethod and Description
private void
_addOverrides(List<HierarchicType> typesWithOverrides, Set<ClassKey> seenTypes, Class<?> override)

private void
_addOverrides(List<HierarchicType> typesWithOverrides, Set<ClassKey> seenTypes, ResolvedType override)

protected void
_gatherTypes(ResolvedType currentType, Set<ClassKey> seenTypes, List<ResolvedType> types)

public ResolvedTypeWithMembers
resolve(final ResolvedType
Resolved type that is the starting point (i.e. the leaf class) for member resolution.
mainType
,
AnnotationConfiguration
Configuration of annotation types; which ones to include, how to inherit
annotationConfig
,
AnnotationOverrides
Definitions of annotation overrides to use, if any (may be null)
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.

public MemberResolver
public MemberResolver
public MemberResolver
setIncludeLangObject(boolean state)

Configuration method for specifying whether members of java.lang.Object are to be included in resolution; if false, no members from java.lang.Object are to be included; if true, will be included.

public MemberResolver
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_cfgIncludeLangObjectback to summary
protected boolean _cfgIncludeLangObject

Configuration setting that determines whether members from java.lang.Object are included or not; by default false meaning that they are not.

_constructorFilterback to summary
protected Filter<RawConstructor> _constructorFilter

Filter used for determining whether given constructor is to be included in aggregation of all constructors.

_fieldFilterback to summary
protected Filter<RawField> _fieldFilter

Filter used for determining whether given field (static or member) is to be included in aggregation of all fields.

_methodFilterback to summary
protected Filter<RawMethod> _methodFilter

Filter used for determining whether given method (static or member) is to be included in aggregation of all methods.

_typeResolverback to summary
protected final TypeResolver _typeResolver

Type resolved needed for resolving types of member objects (method argument and return; field types; constructor argument types)

Constructor Detail

MemberResolverback to summary
public MemberResolver(TypeResolver typeResolver)

Constructor for resolver that does not include java.lang.Object in type hierarchy

Method Detail

_addOverridesback to summary
private void _addOverrides(List<HierarchicType> typesWithOverrides, Set<ClassKey> seenTypes, Class<?> override)
_addOverridesback to summary
private void _addOverrides(List<HierarchicType> typesWithOverrides, Set<ClassKey> seenTypes, ResolvedType override)
_gatherTypesback to summary
protected void _gatherTypes(ResolvedType currentType, Set<ClassKey> seenTypes, List<ResolvedType> types)
resolveback to summary
public ResolvedTypeWithMembers resolve(final 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:ResolvedType

Resolved type that is the starting point (i.e. the leaf class) for member resolution.

annotationConfig:AnnotationConfiguration

Configuration of annotation types; which ones to include, how to inherit

annotationOverrides:AnnotationOverrides

Definitions of annotation overrides to use, if any (may be null)

setConstructorFilterback to summary
public MemberResolver setConstructorFilter(Filter<RawConstructor> f)
setFieldFilterback to summary
public MemberResolver setFieldFilter(Filter<RawField> f)
setIncludeLangObjectback to summary
public MemberResolver setIncludeLangObject(boolean state)

Configuration method for specifying whether members of java.lang.Object are to be included in resolution; if false, no members from java.lang.Object are to be included; if true, will be included.

setMethodFilterback to summary
public MemberResolver setMethodFilter(Filter<RawMethod> f)