| Package | Description |
|---|---|
| com.fasterxml.classmate |
Package that contains main public interface of ClassMate
package.
|
| com.fasterxml.classmate.types |
Package that contains
ResolvedType
implementation classes. |
| Modifier and Type | Field and Description |
|---|---|
protected TypeBindings |
ResolvedType._typeBindings
Type bindings active when resolving members (methods, fields,
constructors) of this type
|
private static TypeBindings |
TypeBindings.EMPTY |
| Modifier and Type | Method and Description |
|---|---|
static TypeBindings |
TypeBindings.create(java.lang.Class<?> erasedType,
java.util.List<ResolvedType> typeList)
Factory method for constructing bindings for given class using specified type
parameters.
|
static TypeBindings |
TypeBindings.create(java.lang.Class<?> erasedType,
ResolvedType[] types) |
static TypeBindings |
TypeBindings.emptyBindings() |
TypeBindings |
ResolvedType.getTypeBindings()
Method for accessing bindings of type variables to resolved types in context
of this type.
|
TypeBindings |
TypeBindings.withUnboundVariable(java.lang.String name)
Method for creating an instance that has same bindings as this object,
plus an indicator for additional type variable that may be unbound within
this context; this is needed to resolve recursive self-references.
|
| Modifier and Type | Method and Description |
|---|---|
private ResolvedType |
TypeResolver._constructType(ClassStack context,
java.lang.Class<?> rawType,
TypeBindings typeBindings) |
private ResolvedType |
TypeResolver._fromAny(ClassStack context,
java.lang.reflect.Type mainType,
TypeBindings typeBindings) |
private ResolvedType |
TypeResolver._fromArrayType(ClassStack context,
java.lang.reflect.GenericArrayType arrayType,
TypeBindings typeBindings) |
private ResolvedType |
TypeResolver._fromClass(ClassStack context,
java.lang.Class<?> rawType,
TypeBindings typeBindings) |
private ResolvedType |
TypeResolver._fromGenericType(ClassStack context,
GenericType<?> generic,
TypeBindings typeBindings)
Factory method for resolving given generic type, defined by using sub-class
instance of
GenericType |
private ResolvedType |
TypeResolver._fromParamType(ClassStack context,
java.lang.reflect.ParameterizedType ptype,
TypeBindings parentBindings) |
private ResolvedType |
TypeResolver._fromVariable(ClassStack context,
java.lang.reflect.TypeVariable<?> variable,
TypeBindings typeBindings) |
private ResolvedType |
TypeResolver._fromWildcard(ClassStack context,
java.lang.reflect.WildcardType wildType,
TypeBindings typeBindings) |
private ResolvedType |
TypeResolver._resolveSuperClass(ClassStack context,
java.lang.Class<?> rawType,
TypeBindings typeBindings)
NOTE: return type changed in 1.0.1 from
ResolvedObjectType to
ResolvedType, since it was found that other types may
be returned... |
private ResolvedType[] |
TypeResolver._resolveSuperInterfaces(ClassStack context,
java.lang.Class<?> rawType,
TypeBindings typeBindings) |
ResolvedType |
TypeResolver.resolve(TypeBindings typeBindings,
java.lang.reflect.Type jdkType)
Factory method for resolving specified Java
Type, given
TypeBindings needed to resolve any type variables. |
| Constructor and Description |
|---|
ResolvedType(java.lang.Class<?> cls,
TypeBindings bindings) |
| Modifier and Type | Method and Description |
|---|---|
static ResolvedObjectType |
ResolvedObjectType.create(java.lang.Class<?> erased,
TypeBindings bindings,
ResolvedType superClass,
java.util.List<ResolvedType> interfaces) |
| Constructor and 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,
ResolvedObjectType superClass,
java.util.List<ResolvedType> interfaces)
Deprecated.
|
ResolvedObjectType(java.lang.Class<?> erased,
TypeBindings bindings,
ResolvedObjectType superClass,
ResolvedType[] interfaces)
Deprecated.
|
ResolvedObjectType(java.lang.Class<?> erased,
TypeBindings bindings,
ResolvedType superClass,
java.util.List<ResolvedType> interfaces) |
ResolvedObjectType(java.lang.Class<?> erased,
TypeBindings bindings,
ResolvedType superClass,
ResolvedType[] interfaces) |
ResolvedRecursiveType(java.lang.Class<?> erased,
TypeBindings bindings) |