com.caucho.config.reflect
Class ParamType

java.lang.Object
  extended by com.caucho.config.reflect.BaseType
      extended by com.caucho.config.reflect.ParamType
All Implemented Interfaces:
java.lang.reflect.ParameterizedType, java.lang.reflect.Type
Direct Known Subclasses:
GenericParamType

@Module
public class ParamType
extends BaseType
implements java.lang.reflect.ParameterizedType

param type matching


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.config.reflect.BaseType
BaseType.ClassFill
 
Constructor Summary
ParamType(java.lang.Class<?> type, BaseType[] param, java.util.HashMap<java.lang.String,BaseType> paramMap)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 BaseType fill(BaseType... types)
          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.lang.reflect.Type[] getActualTypeArguments()
           
 java.lang.reflect.Type getOwnerType()
           
 BaseType[] getParameters()
           
 java.util.HashMap<java.lang.String,BaseType> getParamMap()
           
 java.lang.Class<?> getRawClass()
           
 java.lang.reflect.Type getRawType()
           
 java.lang.String getSimpleName()
           
 int hashCode()
           
 boolean isAssignableFrom(BaseType type)
           
 boolean isGeneric()
          Returns true for a generic type like MyBean or MyBean
 boolean isGenericVariable()
          Returns true for a generic variable type like MyBean, but not MyBean
 boolean isParamAssignableFrom(BaseType type)
          Assignable as a parameter.
 java.lang.String toString()
           
 java.lang.reflect.Type toType()
           
 
Methods inherited from class com.caucho.config.reflect.BaseType
create, create, createClass, createForSource, createForTarget, createGenericClass, getBaseTypeClosure, getTypeClosure, getWildcardBounds, isGenericRaw, isObject, isPrimitive, isVariable, isWildcard
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParamType

public ParamType(java.lang.Class<?> type,
                 BaseType[] param,
                 java.util.HashMap<java.lang.String,BaseType> paramMap)
Method Detail

getRawClass

public java.lang.Class<?> getRawClass()
Specified by:
getRawClass in class BaseType

toType

public java.lang.reflect.Type toType()
Overrides:
toType in class BaseType

getActualTypeArguments

public java.lang.reflect.Type[] getActualTypeArguments()
Specified by:
getActualTypeArguments in interface java.lang.reflect.ParameterizedType

getOwnerType

public java.lang.reflect.Type getOwnerType()
Specified by:
getOwnerType in interface java.lang.reflect.ParameterizedType

getParameters

public BaseType[] getParameters()
Overrides:
getParameters in class BaseType

isGeneric

public boolean isGeneric()
Description copied from class: BaseType
Returns true for a generic type like MyBean or MyBean

Overrides:
isGeneric in class BaseType

isGenericVariable

public boolean isGenericVariable()
Description copied from class: BaseType
Returns true for a generic variable type like MyBean, but not MyBean

Overrides:
isGenericVariable in class BaseType

getParamMap

public java.util.HashMap<java.lang.String,BaseType> getParamMap()
Overrides:
getParamMap in class BaseType

getRawType

public java.lang.reflect.Type getRawType()
Specified by:
getRawType in interface java.lang.reflect.ParameterizedType

fillTypeClosure

protected void fillTypeClosure(InjectManager manager,
                               java.util.Set<java.lang.reflect.Type> typeSet)
Overrides:
fillTypeClosure in class BaseType

fill

public BaseType fill(BaseType... types)
Description copied from class: BaseType
Fills in a parameter with a given name.

Overrides:
fill in class BaseType

fillSyntheticTypes

public void fillSyntheticTypes(java.util.Set<VarType<?>> varTypeList)
Overrides:
fillSyntheticTypes in class BaseType

isAssignableFrom

public boolean isAssignableFrom(BaseType type)
Overrides:
isAssignableFrom in class BaseType

isParamAssignableFrom

public boolean isParamAssignableFrom(BaseType type)
Description copied from class: BaseType
Assignable as a parameter.

Overrides:
isParamAssignableFrom in class BaseType

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getSimpleName

public java.lang.String getSimpleName()
Overrides:
getSimpleName in class BaseType

toString

public java.lang.String toString()
Overrides:
toString in class BaseType