Package com.fasterxml.jackson.jr.type
Class ResolvedType
- java.lang.Object
-
- com.fasterxml.jackson.jr.type.ResolvedType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.reflect.Type
- Direct Known Subclasses:
RecursiveType
public class ResolvedType extends java.lang.Object implements java.lang.reflect.Type, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected TypeBindings
_bindings
protected ResolvedType
_elemType
protected java.lang.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(java.lang.Class<?> cls)
protected
ResolvedType(java.lang.Class<?> cls, ResolvedType sup, TypeBindings bindings, ResolvedType[] ifaces)
protected
ResolvedType(java.lang.Class<?> cls, TypeBindings bindings)
protected
ResolvedType(java.lang.Class<?> cls, TypeBindings bindings, ResolvedType elemType)
protected
ResolvedType(java.lang.Class<?> cls, TypeBindings bindings, ResolvedType[] ifaces)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringBuilder
_appendClassDesc(java.lang.StringBuilder sb)
java.lang.StringBuilder
appendDesc(java.lang.StringBuilder sb)
ResolvedType
elementType()
boolean
equals(java.lang.Object o)
java.lang.Class<?>
erasedType()
ResolvedType
findSupertype(java.lang.Class<?> erasedSupertype)
Method for finding super type of this type that has specified type erased signature.java.lang.String
getDesc()
int
hashCode()
java.util.List<ResolvedType>
implInterfaces()
boolean
isArray()
ResolvedType
parentType()
java.lang.String
toString()
TypeBindings
typeBindings()
java.util.List<ResolvedType>
typeParametersFor(java.lang.Class<?> erasedSupertype)
Method that will try to find type parameterization this type has for specified super typejava.util.List<ResolvedType>
typeParams()
-
-
-
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 java.lang.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(java.lang.Class<?> cls)
-
ResolvedType
protected ResolvedType(java.lang.Class<?> cls, TypeBindings bindings)
-
ResolvedType
protected ResolvedType(java.lang.Class<?> cls, TypeBindings bindings, ResolvedType elemType)
-
ResolvedType
protected ResolvedType(java.lang.Class<?> cls, TypeBindings bindings, ResolvedType[] ifaces)
-
ResolvedType
protected ResolvedType(java.lang.Class<?> cls, ResolvedType sup, TypeBindings bindings, ResolvedType[] ifaces)
-
-
Method Detail
-
erasedType
public java.lang.Class<?> erasedType()
-
elementType
public ResolvedType elementType()
-
parentType
public ResolvedType parentType()
-
isArray
public boolean isArray()
-
implInterfaces
public final java.util.List<ResolvedType> implInterfaces()
-
typeParams
public java.util.List<ResolvedType> typeParams()
-
typeBindings
public TypeBindings typeBindings()
-
typeParametersFor
public java.util.List<ResolvedType> typeParametersFor(java.lang.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(java.lang.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 java.lang.String getDesc()
-
appendDesc
public java.lang.StringBuilder appendDesc(java.lang.StringBuilder sb)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
_appendClassDesc
protected java.lang.StringBuilder _appendClassDesc(java.lang.StringBuilder sb)
-
-