com.caucho.config.reflect
Class VarType<D extends java.lang.reflect.GenericDeclaration>
java.lang.Object
com.caucho.config.reflect.BaseType
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
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 |
VarType
public VarType(java.lang.String name,
BaseType[] bounds)
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