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
_bindings
protected ResolvedType
_elemType
protected Class<?>
_erasedType
protected ResolvedType[]
_interfaces
protected int
_kind
protected ResolvedType
_super
static ResolvedType[]
NO_TYPES
protected static int
T_ARRAY
protected static int
T_INTERFACE
protected static int
T_PRIMITIVE
protected static int
T_RECURSIVE
protected static int
T_REGULAR
-
Constructor Summary
Constructors Modifier Constructor Description protected
ResolvedType(Class<?> cls)
protected
ResolvedType(Class<?> cls, ResolvedType sup, TypeBindings bindings, ResolvedType[] ifaces)
protected
ResolvedType(Class<?> cls, TypeBindings bindings)
protected
ResolvedType(Class<?> cls, TypeBindings bindings, ResolvedType elemType)
protected
ResolvedType(Class<?> cls, TypeBindings bindings, ResolvedType[] ifaces)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringBuilder
_appendClassDesc(StringBuilder sb)
StringBuilder
appendDesc(StringBuilder sb)
ResolvedType
elementType()
boolean
equals(Object o)
Class<?>
erasedType()
ResolvedType
findSupertype(Class<?> erasedSupertype)
Method for finding super type of this type that has specified type erased signature.String
getDesc()
int
hashCode()
List<ResolvedType>
implInterfaces()
boolean
isArray()
ResolvedType
parentType()
String
toString()
TypeBindings
typeBindings()
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)
-
-