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_bindingsprotected ResolvedType_elemTypeprotected java.lang.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(java.lang.Class<?> cls)protectedResolvedType(java.lang.Class<?> cls, ResolvedType sup, TypeBindings bindings, ResolvedType[] ifaces)protectedResolvedType(java.lang.Class<?> cls, TypeBindings bindings)protectedResolvedType(java.lang.Class<?> cls, TypeBindings bindings, ResolvedType elemType)protectedResolvedType(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.StringBuilderappendDesc(java.lang.StringBuilder sb)ResolvedTypeelementType()booleanequals(java.lang.Object o)java.lang.Class<?>erasedType()ResolvedTypefindSupertype(java.lang.Class<?> erasedSupertype)Method for finding super type of this type that has specified type erased signature.java.lang.StringgetDesc()inthashCode()java.util.List<ResolvedType>implInterfaces()booleanisArray()ResolvedTypeparentType()java.lang.StringtoString()TypeBindingstypeBindings()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:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
_appendClassDesc
protected java.lang.StringBuilder _appendClassDesc(java.lang.StringBuilder sb)
-
-