Package org.jboss.jandex
Class JandexReflection.TypeVariableReferenceImpl<D extends GenericDeclaration>
java.lang.Object
org.jboss.jandex.JandexReflection.TypeVariableReferenceImpl<D>
- All Implemented Interfaces:
AnnotatedElement,Type,TypeVariable<D>
- Enclosing class:
JandexReflection
private static class JandexReflection.TypeVariableReferenceImpl<D extends GenericDeclaration>
extends Object
implements TypeVariable<D>
A delegating implementation of
TypeVariable that is NOT compatible
with the JDK's implementation (as in, the equals() and hashCode() methods do not work
as expected).
The delegate is expected to be set after construction using setDelegate(TypeVariableImpl).
It is useful to represent recursive type variables.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean<T extends Annotation>
TgetAnnotation(Class<T> annotationClass) Type[]getName()inthashCode()(package private) voidsetDelegate(JandexReflection.TypeVariableImpl<D> delegate) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType, isAnnotationPresentMethods inherited from interface java.lang.reflect.Type
getTypeName
-
Field Details
-
delegate
-
-
Constructor Details
-
TypeVariableReferenceImpl
private TypeVariableReferenceImpl()
-
-
Method Details
-
setDelegate
-
getBounds
- Specified by:
getBoundsin interfaceTypeVariable<D extends GenericDeclaration>
-
getGenericDeclaration
- Specified by:
getGenericDeclarationin interfaceTypeVariable<D extends GenericDeclaration>
-
getName
- Specified by:
getNamein interfaceTypeVariable<D extends GenericDeclaration>
-
getAnnotatedBounds
- Specified by:
getAnnotatedBoundsin interfaceTypeVariable<D extends GenericDeclaration>
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedElement
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedElement
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement
-
equals
-
hashCode
public int hashCode() -
toString
-