Modifier and Type | Class and Description |
---|---|
static class |
BaseType.ClassFill |
Constructor and Description |
---|
BaseType() |
Modifier and Type | Method and Description |
---|---|
static BaseType |
create(java.lang.reflect.Type type,
java.util.HashMap<java.lang.String,BaseType> paramMap,
java.lang.String paramDeclName,
BaseType.ClassFill classFill) |
static BaseType |
create(java.lang.reflect.Type type,
java.util.HashMap<java.lang.String,BaseType> paramMap,
java.lang.String paramDeclName,
java.lang.reflect.Type parentType,
BaseType.ClassFill classFill) |
static BaseType |
createClass(java.lang.Class<?> type)
Create a class-based type, where any parameters are filled with the
variables, not Object.
|
static BaseType |
createForSource(java.lang.reflect.Type type,
java.util.HashMap<java.lang.String,BaseType> paramMap,
java.lang.String paramDeclName) |
static BaseType |
createForTarget(java.lang.reflect.Type type,
java.util.HashMap<java.lang.String,BaseType> paramMap,
java.lang.String paramDeclName) |
static BaseType |
createGenericClass(java.lang.Class<?> type)
Create a class-based type, where any parameters are filled with the
variables, not Object.
|
BaseType |
extendGenericType() |
BaseType |
fill(BaseType... baseType)
Fills in a parameter with a given name.
|
void |
fillSyntheticTypes(java.util.Set<VarType<?>> varTypeList) |
protected void |
fillTypeClosure(InjectManager manager,
java.util.Set<java.lang.reflect.Type> typeSet) |
java.util.Set<BaseType> |
getBaseTypeClosure(InjectManager manager)
Returns the type closure of the base type.
|
BaseType[] |
getParameters() |
java.util.HashMap<java.lang.String,BaseType> |
getParamMap() |
abstract java.lang.Class<?> |
getRawClass() |
java.lang.String |
getSimpleName() |
java.util.Set<java.lang.reflect.Type> |
getTypeClosure(InjectManager manager)
Returns the type closure of the base type.
|
protected BaseType[] |
getWildcardBounds() |
boolean |
isAssignableFrom(BaseType type) |
boolean |
isGeneric()
Returns true for a generic type like MyBean
|
boolean |
isGenericRaw()
Returns true for a raw type like MyBean where the class definition
is MyBean
|
boolean |
isGenericVariable()
Returns true for a generic variable type like MyBean
|
boolean |
isObject() |
boolean |
isParamAssignableFrom(BaseType type)
Assignable as a parameter.
|
boolean |
isPrimitive() |
boolean |
isVariable()
Returns true for a variable type like X
|
boolean |
isWildcard() |
java.lang.String |
toString() |
java.lang.reflect.Type |
toType() |
public static BaseType createForTarget(java.lang.reflect.Type type, java.util.HashMap<java.lang.String,BaseType> paramMap, java.lang.String paramDeclName)
public static BaseType createForSource(java.lang.reflect.Type type, java.util.HashMap<java.lang.String,BaseType> paramMap, java.lang.String paramDeclName)
public static BaseType create(java.lang.reflect.Type type, java.util.HashMap<java.lang.String,BaseType> paramMap, java.lang.String paramDeclName, BaseType.ClassFill classFill)
public static BaseType create(java.lang.reflect.Type type, java.util.HashMap<java.lang.String,BaseType> paramMap, java.lang.String paramDeclName, java.lang.reflect.Type parentType, BaseType.ClassFill classFill)
public static BaseType createClass(java.lang.Class<?> type)
public static BaseType createGenericClass(java.lang.Class<?> type)
public abstract java.lang.Class<?> getRawClass()
public java.util.HashMap<java.lang.String,BaseType> getParamMap()
public BaseType[] getParameters()
public boolean isWildcard()
public boolean isGeneric()
public boolean isGenericVariable()
public boolean isVariable()
public boolean isGenericRaw()
public boolean isPrimitive()
public boolean isObject()
protected BaseType[] getWildcardBounds()
public boolean isAssignableFrom(BaseType type)
public boolean isParamAssignableFrom(BaseType type)
public java.lang.reflect.Type toType()
public final java.util.Set<java.lang.reflect.Type> getTypeClosure(InjectManager manager)
public final java.util.Set<BaseType> getBaseTypeClosure(InjectManager manager)
protected void fillTypeClosure(InjectManager manager, java.util.Set<java.lang.reflect.Type> typeSet)
public void fillSyntheticTypes(java.util.Set<VarType<?>> varTypeList)
public BaseType extendGenericType()
public java.lang.String getSimpleName()
public java.lang.String toString()
toString
in class java.lang.Object