|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fasterxml.classmate.ResolvedTypeWithMembers
public class ResolvedTypeWithMembers
Class that contains information about fully resolved members of a
type; resolution meaning that masking is handled for methods, and
all inheritable annotations are flattened using optional overrides
as well ("mix-in annotations").
Instances are created by MemberResolver
.
Note that instances are not thread-safe, as the expectation is that instances will not be shared (unlike raw members or resolved types)
Field Summary | |
---|---|
protected com.fasterxml.classmate.ResolvedTypeWithMembers.AnnotationHandler |
_annotationHandler
Handler for resolving annotation information |
protected Filter<RawConstructor> |
_constructorFilter
Filter to use for selecting constructors to include |
protected ResolvedConstructor[] |
_constructors
|
protected Filter<RawField> |
_fieldFilter
Filter to use for selecting fields to include |
protected HierarchicType |
_mainType
Leaf of the type hierarchy, i.e. |
protected ResolvedField[] |
_memberFields
|
protected ResolvedMethod[] |
_memberMethods
|
protected Filter<RawMethod> |
_methodFilter
Filter to use for selecting methods to include |
protected ResolvedMethod[] |
_staticMethods
|
protected TypeResolver |
_typeResolver
Need to be able to resolve member types still |
protected HierarchicType[] |
_types
All types that hierarchy contains, in order of increasing precedence (that is, later entries override members of earlier members) |
protected static AnnotationConfiguration |
DEFAULT_ANNOTATION_CONFIG
Default annotation configuration is to ignore all annotations types. |
Constructor Summary | |
---|---|
ResolvedTypeWithMembers(TypeResolver typeResolver,
AnnotationConfiguration annotationConfig,
HierarchicType mainType,
HierarchicType[] types,
Filter<RawConstructor> constructorFilter,
Filter<RawField> fieldFilter,
Filter<RawMethod> methodFilter)
|
Method Summary | |
---|---|
List<HierarchicType> |
allTypesAndOverrides()
Accessor for getting full type hierarchy as priority-ordered list, from the lowest precedence to highest precedence (main type, its mix-in overrides) |
ResolvedConstructor[] |
getConstructors()
|
ResolvedField[] |
getMemberFields()
|
ResolvedMethod[] |
getMemberMethods()
|
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. |
List<HierarchicType> |
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. |
List<HierarchicType> |
overridesOnly()
Accessor for finding just overrides for the main type (if any). |
protected ResolvedConstructor |
resolveConstructor(RawConstructor raw)
Method for resolving individual constructor completely |
protected ResolvedConstructor[] |
resolveConstructors()
Method that will actually resolve full information (types, annotations) for constructors of the main type. |
protected ResolvedField |
resolveField(RawField raw)
Method for resolving individual field completely |
protected ResolvedField[] |
resolveMemberFields()
Method for fully resolving field definitions and associated annotations. |
protected ResolvedMethod[] |
resolveMemberMethods()
|
protected ResolvedMethod |
resolveMethod(RawMethod raw)
Method for resolving individual method completely |
protected ResolvedMethod[] |
resolveStaticMethods()
Method that will actually resolve full information (types, annotations) for static methods, using configured filter. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final AnnotationConfiguration DEFAULT_ANNOTATION_CONFIG
protected final TypeResolver _typeResolver
protected final com.fasterxml.classmate.ResolvedTypeWithMembers.AnnotationHandler _annotationHandler
protected final HierarchicType _mainType
protected final HierarchicType[] _types
protected Filter<RawField> _fieldFilter
protected Filter<RawConstructor> _constructorFilter
protected Filter<RawMethod> _methodFilter
protected ResolvedMethod[] _staticMethods
protected ResolvedMethod[] _memberMethods
protected ResolvedField[] _memberFields
protected ResolvedConstructor[] _constructors
Constructor Detail |
---|
public ResolvedTypeWithMembers(TypeResolver typeResolver, AnnotationConfiguration annotationConfig, HierarchicType mainType, HierarchicType[] types, Filter<RawConstructor> constructorFilter, Filter<RawField> fieldFilter, Filter<RawMethod> methodFilter)
Method Detail |
---|
public int size()
public List<HierarchicType> allTypesAndOverrides()
public List<HierarchicType> mainTypeAndOverrides()
public List<HierarchicType> overridesOnly()
public ResolvedMethod[] getStaticMethods()
public ResolvedField[] getMemberFields()
public ResolvedMethod[] getMemberMethods()
public ResolvedConstructor[] getConstructors()
protected ResolvedConstructor[] resolveConstructors()
protected ResolvedField[] resolveMemberFields()
protected ResolvedMethod[] resolveStaticMethods()
protected ResolvedMethod[] resolveMemberMethods()
protected ResolvedConstructor resolveConstructor(RawConstructor raw)
protected ResolvedField resolveField(RawField raw)
protected ResolvedMethod resolveMethod(RawMethod raw)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |