BaseType.ClassFill
Constructor and Description |
---|
VarType(java.lang.String name,
BaseType[] bounds) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
void |
fillSyntheticTypes(java.util.Set<VarType<?>> varTypeList) |
java.lang.reflect.AnnotatedType[] |
getAnnotatedBounds() |
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass) |
java.lang.annotation.Annotation[] |
getAnnotations() |
java.lang.reflect.Type[] |
getBounds() |
java.lang.annotation.Annotation[] |
getDeclaredAnnotations() |
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
|
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() |
create, create, createClass, createForSource, createForTarget, createGenericClass, extendGenericType, fill, fillTypeClosure, getBaseTypeClosure, getParameters, getParamMap, getSimpleName, getTypeClosure, isGenericRaw, isGenericVariable, isObject, isPrimitive
public VarType(java.lang.String name, BaseType[] bounds)
public java.lang.String getName()
getName
in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>
public D getGenericDeclaration()
getGenericDeclaration
in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>
public boolean isWildcard()
isWildcard
in class BaseType
public boolean isGeneric()
BaseType
public boolean isVariable()
BaseType
isVariable
in class BaseType
public java.lang.reflect.Type[] getBounds()
getBounds
in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>
protected BaseType[] getWildcardBounds()
getWildcardBounds
in class BaseType
public java.lang.Class<?> getRawClass()
getRawClass
in class BaseType
public java.lang.reflect.Type getGenericComponentType()
public boolean isAssignableFrom(BaseType type)
isAssignableFrom
in class BaseType
public boolean isParamAssignableFrom(BaseType type)
BaseType
isParamAssignableFrom
in class BaseType
public void fillSyntheticTypes(java.util.Set<VarType<?>> varTypeList)
fillSyntheticTypes
in class BaseType
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
getAnnotation
in interface java.lang.reflect.AnnotatedElement
public java.lang.annotation.Annotation[] getAnnotations()
getAnnotations
in interface java.lang.reflect.AnnotatedElement
public java.lang.annotation.Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface java.lang.reflect.AnnotatedElement
public java.lang.reflect.AnnotatedType[] getAnnotatedBounds()
getAnnotatedBounds
in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>