public class TypeBindings extends Object
Modifier and Type | Field and Description |
---|---|
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.
|
protected TypeFactory |
_typeFactory
Factory to use for constructing resolved related types.
|
static JavaType |
UNBOUND
Marker to use for (temporarily) unbound references.
|
Constructor and Description |
---|
TypeBindings(TypeFactory typeFactory,
Class<?> cc) |
TypeBindings(TypeFactory typeFactory,
JavaType type) |
Modifier and Type | Method and Description |
---|---|
void |
_addPlaceholder(String name) |
protected void |
_resolve() |
protected void |
_resolveBindings(Type t) |
void |
addBinding(String name,
JavaType type) |
TypeBindings |
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.
|
JavaType |
findType(String name)
Deprecated.
|
JavaType |
findType(String name,
boolean mustFind) |
int |
getBindingCount() |
JavaType |
resolveType(Class<?> cls) |
JavaType |
resolveType(Type type) |
String |
toString() |
JavaType[] |
typesAsArray() |
public static final JavaType UNBOUND
protected final TypeFactory _typeFactory
protected final JavaType _contextType
_contextClass
is used instead.protected final Class<?> _contextClass
protected Map<String,JavaType> _bindings
public TypeBindings(TypeFactory typeFactory, Class<?> cc)
public TypeBindings(TypeFactory typeFactory, JavaType type)
public TypeBindings childInstance()
public int getBindingCount()
@Deprecated public JavaType findType(String name)
public JavaType[] typesAsArray()
protected void _resolve()
public void _addPlaceholder(String name)
protected void _resolveBindings(Type t)
Copyright © 2016 JBoss by Red Hat. All rights reserved.