Package org.jboss.jandex
Class JandexReflection.TypeVariableReferenceImpl<D extends java.lang.reflect.GenericDeclaration>
- java.lang.Object
-
- org.jboss.jandex.JandexReflection.TypeVariableReferenceImpl<D>
-
- All Implemented Interfaces:
java.lang.reflect.AnnotatedElement,java.lang.reflect.Type,java.lang.reflect.TypeVariable<D>
- Enclosing class:
- JandexReflection
private static class JandexReflection.TypeVariableReferenceImpl<D extends java.lang.reflect.GenericDeclaration> extends java.lang.Object implements java.lang.reflect.TypeVariable<D>A delegating implementation ofTypeVariablethat is NOT compatible with the JDK's implementation (as in, theequals()andhashCode()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 Modifier and Type Field Description private JandexReflection.TypeVariableImpl<D>delegate
-
Constructor Summary
Constructors Modifier Constructor Description privateTypeVariableReferenceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.reflect.AnnotatedType[]getAnnotatedBounds()<T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> annotationClass)java.lang.annotation.Annotation[]getAnnotations()java.lang.reflect.Type[]getBounds()java.lang.annotation.Annotation[]getDeclaredAnnotations()DgetGenericDeclaration()java.lang.StringgetName()inthashCode()(package private) voidsetDelegate(JandexReflection.TypeVariableImpl<D> delegate)java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
delegate
private JandexReflection.TypeVariableImpl<D extends java.lang.reflect.GenericDeclaration> delegate
-
-
Method Detail
-
setDelegate
void setDelegate(JandexReflection.TypeVariableImpl<D> delegate)
-
getBounds
public java.lang.reflect.Type[] getBounds()
- Specified by:
getBoundsin interfacejava.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>
-
getGenericDeclaration
public D getGenericDeclaration()
- Specified by:
getGenericDeclarationin interfacejava.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacejava.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>
-
getAnnotatedBounds
public java.lang.reflect.AnnotatedType[] getAnnotatedBounds()
- Specified by:
getAnnotatedBoundsin interfacejava.lang.reflect.TypeVariable<D extends java.lang.reflect.GenericDeclaration>
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
- Specified by:
getAnnotationin interfacejava.lang.reflect.AnnotatedElement
-
getAnnotations
public java.lang.annotation.Annotation[] getAnnotations()
- Specified by:
getAnnotationsin interfacejava.lang.reflect.AnnotatedElement
-
getDeclaredAnnotations
public java.lang.annotation.Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfacejava.lang.reflect.AnnotatedElement
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-