|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fasterxml.classmate.MemberResolver
public class MemberResolver
Builder class used to completely resolve members (fields, methods,
constructors) of ResolvedType
s (generics-aware classes).
Field Summary | |
---|---|
protected boolean |
_cfgIncludeLangObject
Configuration setting that determines whether members from 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 TypeResolver |
_typeResolver
Type resolved needed for resolving types of member objects (method argument and return; field types; constructor argument types) |
Constructor Summary | |
---|---|
MemberResolver(TypeResolver typeResolver)
Constructor for resolver that does not include java.lang.Object
in type hierarchy |
Method Summary | |
---|---|
protected void |
_gatherTypes(ResolvedType currentType,
Set<ClassKey> seenTypes,
List<ResolvedType> types)
|
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. |
MemberResolver |
setConstructorFilter(Filter<RawConstructor> f)
|
MemberResolver |
setFieldFilter(Filter<RawField> f)
|
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 Object
are to be included; if true, will be included. |
MemberResolver |
setMethodFilter(Filter<RawMethod> f)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final TypeResolver _typeResolver
protected boolean _cfgIncludeLangObject
Object
are included or not; by default
false meaning that they are not.
protected Filter<RawField> _fieldFilter
protected Filter<RawMethod> _methodFilter
protected Filter<RawConstructor> _constructorFilter
Constructor Detail |
---|
public MemberResolver(TypeResolver typeResolver)
java.lang.Object
in type hierarchy
Method Detail |
---|
public MemberResolver setIncludeLangObject(boolean state)
java.lang.Object
are to be included in resolution; if false, no members from Object
are to be included; if true, will be included.
public MemberResolver setFieldFilter(Filter<RawField> f)
public MemberResolver setMethodFilter(Filter<RawMethod> f)
public MemberResolver setConstructorFilter(Filter<RawConstructor> f)
public ResolvedTypeWithMembers resolve(ResolvedType mainType, AnnotationConfiguration annotationConfig, AnnotationOverrides annotationOverrides)
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)protected void _gatherTypes(ResolvedType currentType, Set<ClassKey> seenTypes, List<ResolvedType> types)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |