Uses of Class
com.fasterxml.classmate.ResolvedType
-
Packages that use ResolvedType Package Description com.fasterxml.classmate Package that contains main public interface of ClassMate package.com.fasterxml.classmate.members Package that contains implementations of various member types (methods, fields, constructors)com.fasterxml.classmate.types Package that containsResolvedTypeimplementation classes.com.fasterxml.classmate.util Various utility classes used by ClassMate. -
-
Uses of ResolvedType in com.fasterxml.classmate
Fields in com.fasterxml.classmate declared as ResolvedType Modifier and Type Field Description private ResolvedType[]TypeBindings. _typesTypes matching namesprivate static ResolvedType[]ResolvedTypeWithMembers. NO_RESOLVED_TYPESstatic ResolvedType[]ResolvedType. NO_TYPESprivate static ResolvedType[]TypeBindings. NO_TYPESprivate static ResolvedType[]TypeResolver. NO_TYPESFields in com.fasterxml.classmate with type parameters of type ResolvedType Modifier and Type Field Description protected static java.util.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 ResolvedType Modifier and Type Method Description private ResolvedTypeTypeResolver. _constructType(ClassStack context, java.lang.Class<?> rawType, TypeBindings typeBindings)private ResolvedTypeTypeResolver. _fromAny(ClassStack context, java.lang.reflect.Type mainType, TypeBindings typeBindings)private ResolvedTypeTypeResolver. _fromArrayType(ClassStack context, java.lang.reflect.GenericArrayType arrayType, TypeBindings typeBindings)private ResolvedTypeTypeResolver. _fromClass(ClassStack context, java.lang.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, java.lang.reflect.ParameterizedType ptype, TypeBindings parentBindings)private ResolvedTypeTypeResolver. _fromVariable(ClassStack context, java.lang.reflect.TypeVariable<?> variable, TypeBindings typeBindings)private ResolvedTypeTypeResolver. _fromWildcard(ClassStack context, java.lang.reflect.WildcardType wildType, TypeBindings typeBindings)private ResolvedTypeTypeResolver. _resolveSuperClass(ClassStack context, java.lang.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, java.lang.Class<?> rawType, TypeBindings typeBindings)ResolvedTypeTypeBindings. findBoundType(java.lang.String name)Find type bound to specified name, if there is one; returns bound type if so, null if not.ResolvedTypeResolvedType. findSupertype(java.lang.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.ResolvedTypeTypeBindings. 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>).ResolvedTypeTypeResolver. resolve(TypeBindings typeBindings, java.lang.reflect.Type jdkType)Factory method for resolving specified JavaType, givenTypeBindingsneeded to resolve any type variables.ResolvedTypeTypeResolver. resolve(java.lang.reflect.Type type, java.lang.reflect.Type... typeParameters)Factory method for resolving given base type using specified types as type parameters.ResolvedTypeTypeResolver. resolveSubtype(ResolvedType supertype, java.lang.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 ResolvedType Modifier and Type Method Description abstract java.util.List<ResolvedType>ResolvedType. getImplementedInterfaces()Returns ordered list of interfaces (in declaration order) that this type implements.java.util.List<ResolvedType>ResolvedType. getTypeParameters()Returns list of generic type declarations for this type, in order they are declared in class description.java.util.List<ResolvedType>TypeBindings. getTypeParameters()Accessor for getting bound types in declaration orderjava.util.List<ResolvedType>ResolvedType. typeParametersFor(java.lang.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 ResolvedType Modifier and Type Method Description private voidMemberResolver. _addOverrides(java.util.List<HierarchicType> typesWithOverrides, java.util.Set<ClassKey> seenTypes, ResolvedType override)protected voidMemberResolver. _gatherTypes(ResolvedType currentType, java.util.Set<ClassKey> seenTypes, java.util.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(java.lang.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 interfacesResolvedTypeWithMembersMemberResolver. 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.ResolvedTypeTypeResolver. resolveSubtype(ResolvedType supertype, java.lang.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 ResolvedType Modifier and Type Method Description protected voidMemberResolver. _gatherTypes(ResolvedType currentType, java.util.Set<ClassKey> seenTypes, java.util.List<ResolvedType> types)static TypeBindingsTypeBindings. create(java.lang.Class<?> erasedType, java.util.List<ResolvedType> typeList)Factory method for constructing bindings for given class using specified type parameters.Constructors in com.fasterxml.classmate with parameters of type ResolvedType Constructor Description TypeBindings(java.lang.String[] names, ResolvedType[] types, java.lang.String[] uvars) -
Uses of ResolvedType in com.fasterxml.classmate.members
Fields in com.fasterxml.classmate.members declared as ResolvedType Modifier and Type Field Description protected ResolvedTypeRawMember. _declaringTypeResolvedType(class with generic type parameters) that declared this memberprotected ResolvedTypeResolvedMember. _declaringTypeResolvedType(class with generic type parameters) that declared this memberprotected ResolvedType[]ResolvedParameterizedMember. _paramTypesprotected ResolvedTypeHierarchicType. _typeprotected ResolvedTypeResolvedMember. _typeMethods in com.fasterxml.classmate.members that return ResolvedType Modifier and Type Method Description ResolvedTypeResolvedParameterizedMember. getArgumentType(int index)ResolvedTypeRawMember. getDeclaringType()ResolvedTypeResolvedMember. getDeclaringType()ResolvedTypeResolvedMethod. getReturnType()ResolvedTypeHierarchicType. getType()ResolvedTypeResolvedMember. 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 ResolvedType Constructor Description HierarchicType(ResolvedType type, boolean mixin, int priority)RawConstructor(ResolvedType context, java.lang.reflect.Constructor<?> constructor)RawField(ResolvedType context, java.lang.reflect.Field field)RawMember(ResolvedType context)RawMethod(ResolvedType context, java.lang.reflect.Method method)ResolvedConstructor(ResolvedType context, Annotations ann, java.lang.reflect.Constructor<?> constructor, ResolvedType[] argumentTypes)ResolvedField(ResolvedType context, Annotations ann, java.lang.reflect.Field field, ResolvedType type)ResolvedMember(ResolvedType context, Annotations ann, T member, ResolvedType type)ResolvedMethod(ResolvedType context, Annotations ann, java.lang.reflect.Method method, ResolvedType returnType, ResolvedType[] argumentTypes)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.types Modifier and Type Class Description classResolvedArrayTypeclassResolvedInterfaceTypeclassResolvedObjectTypeType implementation for classes that do not represent interfaces, primitive or array types.classResolvedPrimitiveTypeType used for Java primitive types (which does not include arrays here).classResolvedRecursiveTypeSpecialized 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.classTypePlaceHolderPlaceholder used for resolving type assignments to figure out type parameters for subtypes.Fields in com.fasterxml.classmate.types declared as ResolvedType Modifier and Type Field Description protected ResolvedTypeTypePlaceHolder. _actualTypeType assigned during wildcard resolution (which follows type structure resolution)protected ResolvedTypeResolvedArrayType. _elementTypeprotected ResolvedTypeResolvedRecursiveType. _referencedTypeActual fully resolved type; assigned once resolution is completeprotected ResolvedTypeResolvedObjectType. _superClassWhile fundamentally super class has to beResolvedObjectType(or null forObject), we may need to hold on to aResolvedRecursiveTypeoccasionally.protected ResolvedType[]ResolvedInterfaceType. _superInterfacesList of interfaces this type implements; may be empty but never nullprotected ResolvedType[]ResolvedObjectType. _superInterfacesList of interfaces this type implements; may be empty but never nullMethods in com.fasterxml.classmate.types that return ResolvedType Modifier and Type Method Description ResolvedTypeTypePlaceHolder. actualType()ResolvedTypeResolvedArrayType. getArrayElementType()ResolvedTypeResolvedInterfaceType. getArrayElementType()ResolvedTypeResolvedObjectType. getArrayElementType()ResolvedTypeResolvedPrimitiveType. getArrayElementType()ResolvedTypeResolvedRecursiveType. getArrayElementType()To avoid infinite loops, will return null typeResolvedTypeTypePlaceHolder. getArrayElementType()ResolvedTypeResolvedArrayType. getParentClass()ResolvedTypeResolvedInterfaceType. getParentClass()ResolvedTypeResolvedPrimitiveType. getParentClass()ResolvedTypeResolvedRecursiveType. getParentClass()To avoid infinite loops, will return null;ResolvedTypeTypePlaceHolder. getParentClass()ResolvedTypeResolvedArrayType. getSelfReferencedType()ResolvedTypeResolvedInterfaceType. getSelfReferencedType()ResolvedTypeResolvedObjectType. getSelfReferencedType()ResolvedTypeResolvedPrimitiveType. getSelfReferencedType()ResolvedTypeResolvedRecursiveType. getSelfReferencedType()ResolvedTypeTypePlaceHolder. getSelfReferencedType()Methods in com.fasterxml.classmate.types that return types with arguments of type ResolvedType Modifier and Type Method Description java.util.List<ResolvedType>ResolvedArrayType. getImplementedInterfaces()java.util.List<ResolvedType>ResolvedInterfaceType. getImplementedInterfaces()java.util.List<ResolvedType>ResolvedObjectType. getImplementedInterfaces()java.util.List<ResolvedType>ResolvedPrimitiveType. getImplementedInterfaces()java.util.List<ResolvedType>ResolvedRecursiveType. getImplementedInterfaces()To avoid infinite loops, will return empty listjava.util.List<ResolvedType>TypePlaceHolder. getImplementedInterfaces()Methods in com.fasterxml.classmate.types with parameters of type ResolvedType Modifier and Type Method Description voidTypePlaceHolder. actualType(ResolvedType t)static ResolvedObjectTypeResolvedObjectType. create(java.lang.Class<?> erased, TypeBindings bindings, ResolvedType superClass, java.util.List<ResolvedType> interfaces)voidResolvedRecursiveType. setReference(ResolvedType ref)Method parameters in com.fasterxml.classmate.types with type arguments of type ResolvedType Modifier and Type Method Description static ResolvedObjectTypeResolvedObjectType. create(java.lang.Class<?> erased, TypeBindings bindings, ResolvedType superClass, java.util.List<ResolvedType> interfaces)Constructors in com.fasterxml.classmate.types with parameters of type ResolvedType Constructor Description ResolvedArrayType(java.lang.Class<?> erased, TypeBindings bindings, ResolvedType elementType)ResolvedInterfaceType(java.lang.Class<?> erased, TypeBindings bindings, ResolvedType[] superInterfaces)ResolvedObjectType(java.lang.Class<?> erased, TypeBindings bindings, ResolvedType superClass, ResolvedType[] interfaces)ResolvedObjectType(java.lang.Class<?> erased, TypeBindings bindings, ResolvedType superClass, java.util.List<ResolvedType> interfaces)ResolvedObjectType(java.lang.Class<?> erased, TypeBindings bindings, ResolvedObjectType superClass, ResolvedType[] interfaces)Deprecated.Constructor parameters in com.fasterxml.classmate.types with type arguments of type ResolvedType Constructor Description ResolvedObjectType(java.lang.Class<?> erased, TypeBindings bindings, ResolvedType superClass, java.util.List<ResolvedType> interfaces)ResolvedObjectType(java.lang.Class<?> erased, TypeBindings bindings, ResolvedObjectType superClass, java.util.List<ResolvedType> interfaces)Deprecated. -
Uses of ResolvedType in com.fasterxml.classmate.util
Fields in com.fasterxml.classmate.util declared as ResolvedType Modifier and Type Field Description private ResolvedType[]ResolvedTypeKey. _typeParametersFields in com.fasterxml.classmate.util with type parameters of type ResolvedType Modifier and Type Field Description protected java.util.concurrent.ConcurrentHashMap<ResolvedTypeKey,ResolvedType>ConcurrentTypeCache. _mapMethods in com.fasterxml.classmate.util that return ResolvedType Modifier and Type Method Description ResolvedTypeConcurrentTypeCache. find(ResolvedTypeKey key)ResolvedTypeLRUTypeCache. find(ResolvedTypeKey key)abstract ResolvedTypeResolvedTypeCache. find(ResolvedTypeKey key)Methods in com.fasterxml.classmate.util with parameters of type ResolvedType Modifier and Type Method Description protected voidResolvedTypeCache. _addForTest(ResolvedType type)Method only used by test code: do not use otherwise.ResolvedTypeKeyResolvedTypeCache. key(java.lang.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 ResolvedType Modifier and Type Method Description protected booleanLRUTypeCache.CacheMap. removeEldestEntry(java.util.Map.Entry<ResolvedTypeKey,ResolvedType> eldest)Constructors in com.fasterxml.classmate.util with parameters of type ResolvedType Constructor Description ResolvedTypeKey(java.lang.Class<?> erasedType, ResolvedType[] tp)
-