Package com.fasterxml.jackson.jr.type
Class ResolvedType
- java.lang.Object
-
- com.fasterxml.jackson.jr.type.ResolvedType
-
- All Implemented Interfaces:
Serializable,Type
- Direct Known Subclasses:
RecursiveType
public class ResolvedType extends Object implements Type, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected TypeBindings_bindingsprotected ResolvedType_elemTypeprotected Class<?>_erasedTypeprotected ResolvedType[]_interfacesprotected int_kindprotected ResolvedType_superstatic ResolvedType[]NO_TYPESprotected static intT_ARRAYprotected static intT_INTERFACEprotected static intT_PRIMITIVEprotected static intT_RECURSIVEprotected static intT_REGULAR
-
Constructor Summary
Constructors Modifier Constructor Description protectedResolvedType(Class<?> cls)protectedResolvedType(Class<?> cls, ResolvedType sup, TypeBindings bindings, ResolvedType[] ifaces)protectedResolvedType(Class<?> cls, TypeBindings bindings)protectedResolvedType(Class<?> cls, TypeBindings bindings, ResolvedType elemType)protectedResolvedType(Class<?> cls, TypeBindings bindings, ResolvedType[] ifaces)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringBuilder_appendClassDesc(StringBuilder sb)StringBuilderappendDesc(StringBuilder sb)ResolvedTypeelementType()booleanequals(Object o)Class<?>erasedType()ResolvedTypefindSupertype(Class<?> erasedSupertype)Method for finding super type of this type that has specified type erased signature.StringgetDesc()inthashCode()List<ResolvedType>implInterfaces()booleanisArray()ResolvedTypeparentType()StringtoString()TypeBindingstypeBindings()List<ResolvedType>typeParametersFor(Class<?> erasedSupertype)Method that will try to find type parameterization this type has for specified super typeList<ResolvedType>typeParams()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.reflect.Type
getTypeName
-
-
-
-
Field Detail
-
NO_TYPES
public static final ResolvedType[] NO_TYPES
-
T_ARRAY
protected static final int T_ARRAY
- See Also:
- Constant Field Values
-
T_INTERFACE
protected static final int T_INTERFACE
- See Also:
- Constant Field Values
-
T_PRIMITIVE
protected static final int T_PRIMITIVE
- See Also:
- Constant Field Values
-
T_RECURSIVE
protected static final int T_RECURSIVE
- See Also:
- Constant Field Values
-
T_REGULAR
protected static final int T_REGULAR
- See Also:
- Constant Field Values
-
_kind
protected final int _kind
-
_erasedType
protected final Class<?> _erasedType
-
_bindings
protected final TypeBindings _bindings
-
_interfaces
protected final ResolvedType[] _interfaces
-
_elemType
protected final ResolvedType _elemType
-
_super
protected final ResolvedType _super
-
-
Constructor Detail
-
ResolvedType
protected ResolvedType(Class<?> cls)
-
ResolvedType
protected ResolvedType(Class<?> cls, TypeBindings bindings)
-
ResolvedType
protected ResolvedType(Class<?> cls, TypeBindings bindings, ResolvedType elemType)
-
ResolvedType
protected ResolvedType(Class<?> cls, TypeBindings bindings, ResolvedType[] ifaces)
-
ResolvedType
protected ResolvedType(Class<?> cls, ResolvedType sup, TypeBindings bindings, ResolvedType[] ifaces)
-
-
Method Detail
-
erasedType
public Class<?> erasedType()
-
elementType
public ResolvedType elementType()
-
parentType
public ResolvedType parentType()
-
isArray
public boolean isArray()
-
implInterfaces
public final List<ResolvedType> implInterfaces()
-
typeParams
public List<ResolvedType> typeParams()
-
typeBindings
public TypeBindings typeBindings()
-
typeParametersFor
public List<ResolvedType> typeParametersFor(Class<?> erasedSupertype)
Method that will try to find type parameterization this type has for specified super type- Returns:
- List of type parameters for specified supertype (which may be empty, if supertype is not a parametric type); null if specified type is not a super type of this type
-
findSupertype
public ResolvedType findSupertype(Class<?> erasedSupertype)
Method for finding super type of this type that has specified type erased signature. If supertype is an interface which is implemented using multiple inheritance paths, preference is given to interfaces implemented "highest up the stack" (directly implemented interfaces over interfaces superclass implements).
-
getDesc
public String getDesc()
-
appendDesc
public StringBuilder appendDesc(StringBuilder sb)
-
_appendClassDesc
protected StringBuilder _appendClassDesc(StringBuilder sb)
-
-