|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jackson.map.type.TypeBindings
public class TypeBindings
Helper class used for resolving type parameters for given class
Field Summary | |
---|---|
protected Map<String,JavaType> |
_bindings
Lazily-instantiated bindings of resolved type parameters |
protected Class<?> |
_contextClass
Specific class to use for resolving all types, for methods and fields class and its superclasses and -interfaces contain. |
protected JavaType |
_contextType
Context type used for resolving all types, if specified. |
protected HashSet<String> |
_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. |
static JavaType |
UNBOUND
Marker to use for (temporarily) unbound references. |
Constructor Summary | |
---|---|
TypeBindings(Class<?> cc)
|
|
TypeBindings(JavaType type)
|
Method Summary | |
---|---|
void |
_addPlaceholder(String name)
|
protected void |
_resolve()
|
protected void |
_resolveBindings(Type t)
|
JavaType |
findType(String name)
|
int |
getBindingCount()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final JavaType UNBOUND
protected final JavaType _contextType
_contextClass
is used instead.
protected final Class<?> _contextClass
protected Map<String,JavaType> _bindings
protected HashSet<String> _placeholders
Constructor Detail |
---|
public TypeBindings(Class<?> cc)
public TypeBindings(JavaType type)
Method Detail |
---|
public int getBindingCount()
public JavaType findType(String name)
protected void _resolve()
public void _addPlaceholder(String name)
protected void _resolveBindings(Type t)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |