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, isPrimitivepublic 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 BaseTypepublic boolean isGeneric()
BaseTypepublic boolean isVariable()
BaseTypeisVariable in class BaseTypepublic java.lang.reflect.Type[] getBounds()
getBounds in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>protected BaseType[] getWildcardBounds()
getWildcardBounds in class BaseTypepublic java.lang.Class<?> getRawClass()
getRawClass in class BaseTypepublic java.lang.reflect.Type getGenericComponentType()
public boolean isAssignableFrom(BaseType type)
isAssignableFrom in class BaseTypepublic boolean isParamAssignableFrom(BaseType type)
BaseTypeisParamAssignableFrom in class BaseTypepublic void fillSyntheticTypes(java.util.Set<VarType<?>> varTypeList)
fillSyntheticTypes in class BaseTypepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
getAnnotation in interface java.lang.reflect.AnnotatedElementpublic java.lang.annotation.Annotation[] getAnnotations()
getAnnotations in interface java.lang.reflect.AnnotatedElementpublic java.lang.annotation.Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElementpublic java.lang.reflect.AnnotatedType[] getAnnotatedBounds()
getAnnotatedBounds in interface java.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>