Uses of Class
com.fasterxml.classmate.ResolvedType
Packages that use ResolvedType
Package
Description
Package that contains main public interface of ClassMate
package.
Package that contains implementations of various member types
(methods, fields, constructors)
Package that contains
ResolvedType
implementation classes.Various utility classes used by ClassMate.
-
Uses of ResolvedType in com.fasterxml.classmate
Fields in com.fasterxml.classmate declared as ResolvedTypeModifier and TypeFieldDescriptionprivate final ResolvedType[]
TypeBindings._types
Types matching namesprivate static final ResolvedType[]
ResolvedTypeWithMembers.NO_RESOLVED_TYPES
static final ResolvedType[]
ResolvedType.NO_TYPES
private static final ResolvedType[]
TypeBindings.NO_TYPES
private static final ResolvedType[]
TypeResolver.NO_TYPES
Fields in com.fasterxml.classmate with type parameters of type ResolvedTypeModifier and TypeFieldDescriptionprotected static final HashMap
<ClassKey, ResolvedType> TypeResolver._primitiveTypes
Since number of primitive types is small, and they are frequently needed, let's actually pre-create them for efficient reuse.Methods in com.fasterxml.classmate that return ResolvedTypeModifier and TypeMethodDescriptionprivate ResolvedType
TypeResolver._constructType
(ClassStack context, Class<?> rawType, TypeBindings typeBindings) private ResolvedType
TypeResolver._fromAny
(ClassStack context, Type mainType, TypeBindings typeBindings) private ResolvedType
TypeResolver._fromArrayType
(ClassStack context, GenericArrayType arrayType, TypeBindings typeBindings) private ResolvedType
TypeResolver._fromClass
(ClassStack context, Class<?> rawType, TypeBindings typeBindings) private ResolvedType
TypeResolver._fromGenericType
(ClassStack context, GenericType<?> generic, TypeBindings typeBindings) Factory method for resolving given generic type, defined by using sub-class instance ofGenericType
private ResolvedType
TypeResolver._fromParamType
(ClassStack context, ParameterizedType ptype, TypeBindings parentBindings) private ResolvedType
TypeResolver._fromVariable
(ClassStack context, TypeVariable<?> variable, TypeBindings typeBindings) private ResolvedType
TypeResolver._fromWildcard
(ClassStack context, WildcardType wildType, TypeBindings typeBindings) private ResolvedType
TypeResolver._resolveSuperClass
(ClassStack context, Class<?> rawType, TypeBindings typeBindings) NOTE: return type changed in 1.0.1 fromResolvedObjectType
toResolvedType
, since it was found that other types may be returned...private ResolvedType[]
TypeResolver._resolveSuperInterfaces
(ClassStack context, Class<?> rawType, TypeBindings typeBindings) TypeBindings.findBoundType
(String name) Find type bound to specified name, if there is one; returns bound type if so, null if not.ResolvedType.findSupertype
(Class<?> erasedSupertype) Method for finding super type of this type that has specified type erased signature.abstract ResolvedType
ResolvedType.getArrayElementType()
Method that can be used to access element type of array types; will return null for non-array types, and non-null type for array types.TypeBindings.getBoundType
(int index) abstract ResolvedType
ResolvedType.getParentClass()
Returns parent class of this type, if it has one; primitive types and interfaces have no parent class, nor does Object typeObject
.abstract ResolvedType
ResolvedType.getSelfReferencedType()
Accessor that must be used to find out actual type in case of "self-reference"; case where type refers recursive to itself (like,T implements Comparable<T>
).TypeResolver.resolve
(TypeBindings typeBindings, Type jdkType) Factory method for resolving specified JavaType
, givenTypeBindings
needed to resolve any type variables.Factory method for resolving given base type using specified types as type parameters.TypeResolver.resolveSubtype
(ResolvedType supertype, Class<?> subtype) Factory method for constructing sub-classing specified type; class specified as sub-class must be compatible according to basic Java inheritance rules (subtype must properly extend or implement specified supertype).protected ResolvedType[]
TypeBindings.typeParameterArray()
Methods in com.fasterxml.classmate that return types with arguments of type ResolvedTypeModifier and TypeMethodDescriptionabstract List
<ResolvedType> ResolvedType.getImplementedInterfaces()
Returns ordered list of interfaces (in declaration order) that this type implements.ResolvedType.getTypeParameters()
Returns list of generic type declarations for this type, in order they are declared in class description.TypeBindings.getTypeParameters()
Accessor for getting bound types in declaration orderResolvedType.typeParametersFor
(Class<?> erasedSupertype) Method that will try to find type parameterization this type has for specified super typeMethods in com.fasterxml.classmate with parameters of type ResolvedTypeModifier and TypeMethodDescriptionprivate void
MemberResolver._addOverrides
(List<HierarchicType> typesWithOverrides, Set<ClassKey> seenTypes, ResolvedType override) protected void
MemberResolver._gatherTypes
(ResolvedType currentType, Set<ClassKey> seenTypes, List<ResolvedType> types) private void
TypeResolver._resolveTypePlaceholders
(ResolvedType sourceType, ResolvedType actualType) Method called to verify that types match; and if there are any placeholders, replace them inactualType
.private boolean
TypeResolver._verifyAndResolve
(ResolvedType exp, ResolvedType act) static TypeBindings
TypeBindings.create
(Class<?> erasedType, ResolvedType[] types) static boolean
TypeResolver.isSelfReference
(ResolvedType type) Convenience method that can be used to checked whether given resolved type (with erased type ofjava.lang.Object
) is a placeholder for "self-reference"; these are nasty recursive ("self") types needed with some interfacesMemberResolver.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.TypeResolver.resolveSubtype
(ResolvedType supertype, Class<?> subtype) Factory method for constructing sub-classing specified type; class specified as sub-class must be compatible according to basic Java inheritance rules (subtype must properly extend or implement specified supertype).Method parameters in com.fasterxml.classmate with type arguments of type ResolvedTypeModifier and TypeMethodDescriptionprotected void
MemberResolver._gatherTypes
(ResolvedType currentType, Set<ClassKey> seenTypes, List<ResolvedType> types) static TypeBindings
TypeBindings.create
(Class<?> erasedType, List<ResolvedType> typeList) Factory method for constructing bindings for given class using specified type parameters.Constructors in com.fasterxml.classmate with parameters of type ResolvedTypeModifierConstructorDescriptionprivate
TypeBindings
(String[] names, ResolvedType[] types, String[] uvars) -
Uses of ResolvedType in com.fasterxml.classmate.members
Fields in com.fasterxml.classmate.members declared as ResolvedTypeModifier and TypeFieldDescriptionprotected final ResolvedType
RawMember._declaringType
ResolvedType
(class with generic type parameters) that declared this memberprotected final ResolvedType
ResolvedMember._declaringType
ResolvedType
(class with generic type parameters) that declared this memberprotected final ResolvedType[]
ResolvedParameterizedMember._paramTypes
protected final ResolvedType
HierarchicType._type
protected final ResolvedType
ResolvedMember._type
Methods in com.fasterxml.classmate.members that return ResolvedTypeModifier and TypeMethodDescriptionResolvedParameterizedMember.getArgumentType
(int index) final ResolvedType
RawMember.getDeclaringType()
final ResolvedType
ResolvedMember.getDeclaringType()
ResolvedMethod.getReturnType()
HierarchicType.getType()
ResolvedMember.getType()
Returns type of this member; if it has one, for methods this is the return type, for fields field type, and for constructors null.Constructors in com.fasterxml.classmate.members with parameters of type ResolvedTypeModifierConstructorDescriptionHierarchicType
(ResolvedType type, boolean mixin, int priority) RawConstructor
(ResolvedType context, Constructor<?> constructor) RawField
(ResolvedType context, Field field) protected
RawMember
(ResolvedType context) RawMethod
(ResolvedType context, Method method) ResolvedConstructor
(ResolvedType context, Annotations ann, Constructor<?> constructor, ResolvedType[] argumentTypes) ResolvedField
(ResolvedType context, Annotations ann, Field field, ResolvedType type) protected
ResolvedMember
(ResolvedType context, Annotations ann, T member, ResolvedType type) ResolvedMethod
(ResolvedType context, Annotations ann, Method method, ResolvedType returnType, ResolvedType[] argumentTypes) protected
ResolvedParameterizedMember
(ResolvedType context, Annotations ann, T member, ResolvedType type, ResolvedType[] argumentTypes) -
Uses of ResolvedType in com.fasterxml.classmate.types
Subclasses of ResolvedType in com.fasterxml.classmate.typesModifier and TypeClassDescriptionfinal class
class
class
Type implementation for classes that do not represent interfaces, primitive or array types.final class
Type used for Java primitive types (which does not include arrays here).class
Specialized type placeholder used in cases where type definition is recursive; to avoid infinite loop, reference that would be "back" in hierarchy is represented by an instance of this class.class
Placeholder used for resolving type assignments to figure out type parameters for subtypes.Fields in com.fasterxml.classmate.types declared as ResolvedTypeModifier and TypeFieldDescriptionprotected ResolvedType
TypePlaceHolder._actualType
Type assigned during wildcard resolution (which follows type structure resolution)protected final ResolvedType
ResolvedArrayType._elementType
protected ResolvedType
ResolvedRecursiveType._referencedType
Actual fully resolved type; assigned once resolution is completeprotected final ResolvedType
ResolvedObjectType._superClass
While fundamentally super class has to beResolvedObjectType
(or null forObject
), we may need to hold on to aResolvedRecursiveType
occasionally.protected final ResolvedType[]
ResolvedInterfaceType._superInterfaces
List of interfaces this type implements; may be empty but never nullprotected final ResolvedType[]
ResolvedObjectType._superInterfaces
List of interfaces this type implements; may be empty but never nullMethods in com.fasterxml.classmate.types that return ResolvedTypeModifier and TypeMethodDescriptionTypePlaceHolder.actualType()
ResolvedArrayType.getArrayElementType()
ResolvedInterfaceType.getArrayElementType()
final ResolvedType
ResolvedObjectType.getArrayElementType()
ResolvedPrimitiveType.getArrayElementType()
ResolvedRecursiveType.getArrayElementType()
To avoid infinite loops, will return null typeTypePlaceHolder.getArrayElementType()
ResolvedArrayType.getParentClass()
ResolvedInterfaceType.getParentClass()
ResolvedPrimitiveType.getParentClass()
ResolvedRecursiveType.getParentClass()
To avoid infinite loops, will return null;TypePlaceHolder.getParentClass()
ResolvedArrayType.getSelfReferencedType()
ResolvedInterfaceType.getSelfReferencedType()
ResolvedObjectType.getSelfReferencedType()
ResolvedPrimitiveType.getSelfReferencedType()
ResolvedRecursiveType.getSelfReferencedType()
TypePlaceHolder.getSelfReferencedType()
Methods in com.fasterxml.classmate.types that return types with arguments of type ResolvedTypeModifier and TypeMethodDescriptionResolvedArrayType.getImplementedInterfaces()
ResolvedInterfaceType.getImplementedInterfaces()
ResolvedObjectType.getImplementedInterfaces()
ResolvedPrimitiveType.getImplementedInterfaces()
ResolvedRecursiveType.getImplementedInterfaces()
To avoid infinite loops, will return empty listTypePlaceHolder.getImplementedInterfaces()
Methods in com.fasterxml.classmate.types with parameters of type ResolvedTypeModifier and TypeMethodDescriptionvoid
TypePlaceHolder.actualType
(ResolvedType t) static ResolvedObjectType
ResolvedObjectType.create
(Class<?> erased, TypeBindings bindings, ResolvedType superClass, List<ResolvedType> interfaces) void
ResolvedRecursiveType.setReference
(ResolvedType ref) Method parameters in com.fasterxml.classmate.types with type arguments of type ResolvedTypeModifier and TypeMethodDescriptionstatic ResolvedObjectType
ResolvedObjectType.create
(Class<?> erased, TypeBindings bindings, ResolvedType superClass, List<ResolvedType> interfaces) Constructors in com.fasterxml.classmate.types with parameters of type ResolvedTypeModifierConstructorDescriptionResolvedArrayType
(Class<?> erased, TypeBindings bindings, ResolvedType elementType) ResolvedInterfaceType
(Class<?> erased, TypeBindings bindings, ResolvedType[] superInterfaces) ResolvedObjectType
(Class<?> erased, TypeBindings bindings, ResolvedType superClass, ResolvedType[] interfaces) ResolvedObjectType
(Class<?> erased, TypeBindings bindings, ResolvedType superClass, List<ResolvedType> interfaces) ResolvedObjectType
(Class<?> erased, TypeBindings bindings, ResolvedObjectType superClass, ResolvedType[] interfaces) Deprecated.Constructor parameters in com.fasterxml.classmate.types with type arguments of type ResolvedTypeModifierConstructorDescriptionResolvedObjectType
(Class<?> erased, TypeBindings bindings, ResolvedType superClass, List<ResolvedType> interfaces) ResolvedObjectType
(Class<?> erased, TypeBindings bindings, ResolvedObjectType superClass, List<ResolvedType> interfaces) Deprecated. -
Uses of ResolvedType in com.fasterxml.classmate.util
Fields in com.fasterxml.classmate.util declared as ResolvedTypeFields in com.fasterxml.classmate.util with type parameters of type ResolvedTypeModifier and TypeFieldDescriptionprotected final ConcurrentHashMap
<ResolvedTypeKey, ResolvedType> ConcurrentTypeCache._map
Methods in com.fasterxml.classmate.util that return ResolvedTypeModifier and TypeMethodDescriptionConcurrentTypeCache.find
(ResolvedTypeKey key) LRUTypeCache.find
(ResolvedTypeKey key) abstract ResolvedType
ResolvedTypeCache.find
(ResolvedTypeKey key) Methods in com.fasterxml.classmate.util with parameters of type ResolvedTypeModifier and TypeMethodDescriptionprotected void
ResolvedTypeCache._addForTest
(ResolvedType type) Method only used by test code: do not use otherwise.ResolvedTypeCache.key
(Class<?> simpleType, ResolvedType[] tp) Helper method for constructing reusable cache keysvoid
ConcurrentTypeCache.put
(ResolvedTypeKey key, ResolvedType type) void
LRUTypeCache.put
(ResolvedTypeKey key, ResolvedType type) abstract void
ResolvedTypeCache.put
(ResolvedTypeKey key, ResolvedType type) void
ClassStack.resolveSelfReferences
(ResolvedType resolved) Method called when type that this stack frame represents is fully resolved, allowing self-references to be completed (if there are any)Method parameters in com.fasterxml.classmate.util with type arguments of type ResolvedTypeModifier and TypeMethodDescriptionprotected boolean
LRUTypeCache.CacheMap.removeEldestEntry
(Map.Entry<ResolvedTypeKey, ResolvedType> eldest) Constructors in com.fasterxml.classmate.util with parameters of type ResolvedType