Package org.codehaus.jackson.map.type
Class TypeBindings
java.lang.Object
org.codehaus.jackson.map.type.TypeBindings
Helper class used for resolving type parameters for given class
- Since:
- 1.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionLazily-instantiated bindings of resolved type parametersprotected final Class<?>
Specific class to use for resolving all types, for methods and fields class and its superclasses and -interfaces contain.protected final JavaType
Context type used for resolving all types, if specified.Also: we may temporarily want to mark certain named types as resolved (but without exact type); if so, we'll just store names here.protected final TypeFactory
Factory to use for constructing resolved related types.static final JavaType
Marker to use for (temporarily) unbound references. -
Constructor Summary
ConstructorsConstructorDescriptionTypeBindings
(TypeFactory typeFactory, Class<?> cc) TypeBindings
(TypeFactory typeFactory, JavaType type) -
Method Summary
Modifier and TypeMethodDescriptionvoid
_addPlaceholder
(String name) protected void
_resolve()
protected void
void
addBinding
(String name, JavaType type) Constructor used to create "child" instances; mostly to allow delegation from explicitly defined local overrides (local type variables for methods, constructors) to contextual (class-defined) ones.int
resolveType
(Class<?> cls) resolveType
(Type type) toString()
JavaType[]
-
Field Details
-
UNBOUND
Marker to use for (temporarily) unbound references. -
_typeFactory
Factory to use for constructing resolved related types. -
_contextType
Context type used for resolving all types, if specified. May be null, in which case_contextClass
is used instead. -
_contextClass
Specific class to use for resolving all types, for methods and fields class and its superclasses and -interfaces contain. -
_bindings
Lazily-instantiated bindings of resolved type parameters -
_placeholders
Also: we may temporarily want to mark certain named types as resolved (but without exact type); if so, we'll just store names here.
-
-
Constructor Details
-
TypeBindings
-
TypeBindings
-
-
Method Details
-
childInstance
Constructor used to create "child" instances; mostly to allow delegation from explicitly defined local overrides (local type variables for methods, constructors) to contextual (class-defined) ones.- Since:
- 1.7
-
resolveType
-
resolveType
-
getBindingCount
public int getBindingCount()- Since:
- 1.8
-
findType
-
addBinding
-
typesAsArray
-
_resolve
protected void _resolve() -
_addPlaceholder
-
_resolveBindings
-
toString
-