DECLARATION - the type of generic declaration that declared the underlying type variable.public class TypeVariableImpl<DECLARATION extends GenericDeclaration> extends Object implements TypeVariable<DECLARATION>
TypeVariable interface.| Modifier and Type | Field and Description |
|---|---|
private Type[] |
bounds |
private DECLARATION |
genericDeclaration |
private String |
name |
| Constructor and Description |
|---|
TypeVariableImpl(String name,
DECLARATION declaration,
Type[] bounds)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
AnnotatedType[] |
getAnnotatedBounds() |
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
<T extends Annotation> |
getAnnotationsByType(Class<T> annotationClass) |
Type[] |
getBounds() |
<T extends Annotation> |
getDeclaredAnnotation(Class<T> annotationClass) |
Annotation[] |
getDeclaredAnnotations() |
<T extends Annotation> |
getDeclaredAnnotationsByType(Class<T> annotationClass) |
DECLARATION |
getGenericDeclaration() |
String |
getName() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeNameisAnnotationPresentprivate final String name
private final Type[] bounds
private final DECLARATION extends GenericDeclaration genericDeclaration
public TypeVariableImpl(String name, DECLARATION declaration, Type[] bounds)
name - is the name.declaration - is the declaring element (e.g. Class or Method).bounds - are the getBounds().public Type[] getBounds()
getBounds in interface TypeVariable<DECLARATION extends GenericDeclaration>public DECLARATION getGenericDeclaration()
getGenericDeclaration in interface TypeVariable<DECLARATION extends GenericDeclaration>public String getName()
getName in interface TypeVariable<DECLARATION extends GenericDeclaration>public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation in interface AnnotatedElementpublic <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass)
getAnnotationsByType in interface AnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic <T extends Annotation> T getDeclaredAnnotation(Class<T> annotationClass)
getDeclaredAnnotation in interface AnnotatedElementpublic <T extends Annotation> T[] getDeclaredAnnotationsByType(Class<T> annotationClass)
getDeclaredAnnotationsByType in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementpublic AnnotatedType[] getAnnotatedBounds()
getAnnotatedBounds in interface TypeVariable<DECLARATION extends GenericDeclaration>Copyright © 2001–2019 mmm-Team. All rights reserved.