com.caucho.config.reflect
Class VarType<D extends java.lang.reflect.GenericDeclaration>

java.lang.Object
  extended by com.caucho.config.reflect.BaseType
      extended by com.caucho.config.reflect.VarType<D>
All Implemented Interfaces:
java.lang.reflect.Type, java.lang.reflect.TypeVariable<D>

@Module
public class VarType<D extends java.lang.reflect.GenericDeclaration>
extends BaseType
implements java.lang.reflect.TypeVariable<D>

class type matching


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.config.reflect.BaseType
BaseType.ClassFill
 
Constructor Summary
VarType(java.lang.String name, BaseType[] bounds)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 void fillSyntheticTypes(java.util.Set<VarType<?>> varTypeList)
           
 java.lang.reflect.Type[] getBounds()
           
 java.lang.reflect.Type getGenericComponentType()
           
 D getGenericDeclaration()
           
 java.lang.String getName()
           
 java.lang.Class<?> getRawClass()
           
protected  BaseType[] getWildcardBounds()
           
 int hashCode()
           
 boolean isAssignableFrom(BaseType type)
           
 boolean isGeneric()
          Returns true for a generic type like MyBean or MyBean
 boolean isParamAssignableFrom(BaseType type)
          Assignable as a parameter.
 boolean isVariable()
          Returns true for a variable type like X
 boolean isWildcard()
           
 java.lang.String toString()
           
 java.lang.reflect.Type toType()
           
 
Methods inherited from class com.caucho.config.reflect.BaseType
create, create, createClass, createForSource, createForTarget, createGenericClass, fill, fillTypeClosure, getBaseTypeClosure, getParameters, getParamMap, getSimpleName, getTypeClosure, isGenericRaw, isGenericVariable, isObject, isPrimitive
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VarType

public VarType(java.lang.String name,
               BaseType[] bounds)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>

getGenericDeclaration

public D getGenericDeclaration()
Specified by:
getGenericDeclaration in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>

isWildcard

public boolean isWildcard()
Overrides:
isWildcard 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

isVariable

public boolean isVariable()
Description copied from class: BaseType
Returns true for a variable type like X

Overrides:
isVariable in class BaseType

getBounds

public java.lang.reflect.Type[] getBounds()
Specified by:
getBounds in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>

getWildcardBounds

protected BaseType[] getWildcardBounds()
Overrides:
getWildcardBounds in class BaseType

getRawClass

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

getGenericComponentType

public java.lang.reflect.Type getGenericComponentType()

toType

public java.lang.reflect.Type toType()
Overrides:
toType 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

fillSyntheticTypes

public void fillSyntheticTypes(java.util.Set<VarType<?>> varTypeList)
Overrides:
fillSyntheticTypes 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

toString

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