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._typesTypes matching namesprivate static final ResolvedType[]ResolvedTypeWithMembers.NO_RESOLVED_TYPESstatic final ResolvedType[]ResolvedType.NO_TYPESprivate static final ResolvedType[]TypeBindings.NO_TYPESprivate static final ResolvedType[]TypeResolver.NO_TYPESFields in com.fasterxml.classmate with type parameters of type ResolvedTypeModifier and TypeFieldDescriptionprotected static final HashMap<ClassKey, ResolvedType> TypeResolver._primitiveTypesSince 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 ResolvedTypeTypeResolver._constructType(ClassStack context, Class<?> rawType, TypeBindings typeBindings) private ResolvedTypeTypeResolver._fromAny(ClassStack context, Type mainType, TypeBindings typeBindings) private ResolvedTypeTypeResolver._fromArrayType(ClassStack context, GenericArrayType arrayType, TypeBindings typeBindings) private ResolvedTypeTypeResolver._fromClass(ClassStack context, Class<?> rawType, TypeBindings typeBindings) private ResolvedTypeTypeResolver._fromGenericType(ClassStack context, GenericType<?> generic, TypeBindings typeBindings) Factory method for resolving given generic type, defined by using sub-class instance ofGenericTypeprivate ResolvedTypeTypeResolver._fromParamType(ClassStack context, ParameterizedType ptype, TypeBindings parentBindings) private ResolvedTypeTypeResolver._fromVariable(ClassStack context, TypeVariable<?> variable, TypeBindings typeBindings) private ResolvedTypeTypeResolver._fromWildcard(ClassStack context, WildcardType wildType, TypeBindings typeBindings) private ResolvedTypeTypeResolver._resolveSuperClass(ClassStack context, Class<?> rawType, TypeBindings typeBindings) NOTE: return type changed in 1.0.1 fromResolvedObjectTypetoResolvedType, 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 ResolvedTypeResolvedType.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 ResolvedTypeResolvedType.getParentClass()Returns parent class of this type, if it has one; primitive types and interfaces have no parent class, nor does Object typeObject.abstract ResolvedTypeResolvedType.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, givenTypeBindingsneeded 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 voidMemberResolver._addOverrides(List<HierarchicType> typesWithOverrides, Set<ClassKey> seenTypes, ResolvedType override) protected voidMemberResolver._gatherTypes(ResolvedType currentType, Set<ClassKey> seenTypes, List<ResolvedType> types) private voidTypeResolver._resolveTypePlaceholders(ResolvedType sourceType, ResolvedType actualType) Method called to verify that types match; and if there are any placeholders, replace them inactualType.private booleanTypeResolver._verifyAndResolve(ResolvedType exp, ResolvedType act) static TypeBindingsTypeBindings.create(Class<?> erasedType, ResolvedType[] types) static booleanTypeResolver.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 voidMemberResolver._gatherTypes(ResolvedType currentType, Set<ClassKey> seenTypes, List<ResolvedType> types) static TypeBindingsTypeBindings.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 ResolvedTypeModifierConstructorDescriptionprivateTypeBindings(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 ResolvedTypeRawMember._declaringTypeResolvedType(class with generic type parameters) that declared this memberprotected final ResolvedTypeResolvedMember._declaringTypeResolvedType(class with generic type parameters) that declared this memberprotected final ResolvedType[]ResolvedParameterizedMember._paramTypesprotected final ResolvedTypeHierarchicType._typeprotected final ResolvedTypeResolvedMember._typeMethods in com.fasterxml.classmate.members that return ResolvedTypeModifier and TypeMethodDescriptionResolvedParameterizedMember.getArgumentType(int index) final ResolvedTypeRawMember.getDeclaringType()final ResolvedTypeResolvedMember.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) protectedRawMember(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) protectedResolvedMember(ResolvedType context, Annotations ann, T member, ResolvedType type) ResolvedMethod(ResolvedType context, Annotations ann, Method method, ResolvedType returnType, ResolvedType[] argumentTypes) protectedResolvedParameterizedMember(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 classclassclassType implementation for classes that do not represent interfaces, primitive or array types.final classType used for Java primitive types (which does not include arrays here).classSpecialized 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.classPlaceholder used for resolving type assignments to figure out type parameters for subtypes.Fields in com.fasterxml.classmate.types declared as ResolvedTypeModifier and TypeFieldDescriptionprotected ResolvedTypeTypePlaceHolder._actualTypeType assigned during wildcard resolution (which follows type structure resolution)protected final ResolvedTypeResolvedArrayType._elementTypeprotected ResolvedTypeResolvedRecursiveType._referencedTypeActual fully resolved type; assigned once resolution is completeprotected final ResolvedTypeResolvedObjectType._superClassWhile fundamentally super class has to beResolvedObjectType(or null forObject), we may need to hold on to aResolvedRecursiveTypeoccasionally.protected final ResolvedType[]ResolvedInterfaceType._superInterfacesList of interfaces this type implements; may be empty but never nullprotected final ResolvedType[]ResolvedObjectType._superInterfacesList 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 ResolvedTypeResolvedObjectType.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 TypeMethodDescriptionvoidTypePlaceHolder.actualType(ResolvedType t) static ResolvedObjectTypeResolvedObjectType.create(Class<?> erased, TypeBindings bindings, ResolvedType superClass, List<ResolvedType> interfaces) voidResolvedRecursiveType.setReference(ResolvedType ref) Method parameters in com.fasterxml.classmate.types with type arguments of type ResolvedTypeModifier and TypeMethodDescriptionstatic ResolvedObjectTypeResolvedObjectType.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
Subclasses with type arguments of type ResolvedType in com.fasterxml.classmate.utilModifier and TypeClassDescriptionprivate static final classSimple sub-class to get LRU cacheFields 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._mapMethods in com.fasterxml.classmate.util that return ResolvedTypeModifier and TypeMethodDescriptionConcurrentTypeCache.find(ResolvedTypeKey key) LRUTypeCache.find(ResolvedTypeKey key) abstract ResolvedTypeResolvedTypeCache.find(ResolvedTypeKey key) Methods in com.fasterxml.classmate.util with parameters of type ResolvedTypeModifier and TypeMethodDescriptionprotected voidResolvedTypeCache._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 keysvoidConcurrentTypeCache.put(ResolvedTypeKey key, ResolvedType type) voidLRUTypeCache.put(ResolvedTypeKey key, ResolvedType type) abstract voidResolvedTypeCache.put(ResolvedTypeKey key, ResolvedType type) voidClassStack.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 booleanLRUTypeCache.CacheMap.removeEldestEntry(Map.Entry<ResolvedTypeKey, ResolvedType> eldest) Constructors in com.fasterxml.classmate.util with parameters of type ResolvedType