|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.beanfabrics.util.VariableMapping
public class VariableMapping
The VariableMapping
maps type variables to type values.
Constructor Summary | |
---|---|
VariableMapping()
Creates an empty variable mapping. |
|
VariableMapping(VariableMapping aParentMapping)
Creates a copy of the given variable mapping. |
|
VariableMapping(VariableMapping aParentMapping,
java.lang.reflect.ParameterizedType parameterizedType)
Creates a copy of the given variable mapping and populates it with the type variable mapping of the given parameterized type. |
Method Summary | |
---|---|
boolean |
isMapped(java.lang.reflect.TypeVariable<?> variable)
Returns true if the given variable is mapped to some value. |
java.lang.reflect.Type |
resolve(java.lang.reflect.TypeVariable<?> variable)
Resolves the mapped value of the given variable. |
java.lang.reflect.Type |
tryResolve(java.lang.reflect.TypeVariable<?> var)
Tries to resolve the mapped value of the given variable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableMapping()
public VariableMapping(VariableMapping aParentMapping)
aParentMapping
- public VariableMapping(VariableMapping aParentMapping, java.lang.reflect.ParameterizedType parameterizedType)
aParentMapping
- parameterizedType
- Method Detail |
---|
public boolean isMapped(java.lang.reflect.TypeVariable<?> variable)
true
if the given variable is mapped to some value.
variable
-
true
if the given variable is mapped to some valuepublic java.lang.reflect.Type resolve(java.lang.reflect.TypeVariable<?> variable)
variable
- the variable to resolve
public java.lang.reflect.Type tryResolve(java.lang.reflect.TypeVariable<?> var)
var
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |