public static interface TypeDescription.Generic.AnnotationReader
Modifier and Type | Interface and Description |
---|---|
static class |
TypeDescription.Generic.AnnotationReader.Delegator
A delegating annotation reader that delegates all invocations to an annotation reader that wraps the previous one.
|
static interface |
TypeDescription.Generic.AnnotationReader.Dispatcher
A dispatcher that represents the type annotation API via reflective calls if the language feature is available on the current JVM.
|
static class |
TypeDescription.Generic.AnnotationReader.ForComponentType
A chained annotation reader for reading a component type.
|
static class |
TypeDescription.Generic.AnnotationReader.ForOwnerType
A chained annotation reader for reading an owner type.
|
static class |
TypeDescription.Generic.AnnotationReader.ForTypeArgument
A chained annotation reader for reading a parameterized type's type argument.
|
static class |
TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType
A chained annotation reader for reading a type variable's type argument.
|
static class |
TypeDescription.Generic.AnnotationReader.ForWildcardLowerBoundType
A chained annotation reader for reading a wildcard type's lower bound type.
|
static class |
TypeDescription.Generic.AnnotationReader.ForWildcardUpperBoundType
A chained annotation reader for reading a wildcard type's upper bound type.
|
static class |
TypeDescription.Generic.AnnotationReader.NoOp
A non-operational annotation reader.
|
Modifier and Type | Field and Description |
---|---|
static TypeDescription.Generic.AnnotationReader.Dispatcher |
DISPATCHER
The dispatcher to use.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
asList()
Returns the underlying type annotations as a list.
|
TypeDescription.Generic.AnnotationReader |
ofComponentType()
Returns a reader for type annotations of an array's component type.
|
TypeDescription.Generic.AnnotationReader |
ofOuterClass()
Returns a reader for type annotations of an inner class type's outer type.
|
TypeDescription.Generic.AnnotationReader |
ofOwnerType()
Returns a reader for type annotations of a parameterized type's owner type.
|
TypeDescription.Generic.AnnotationReader |
ofTypeArgument(int index)
Returns a reader for type annotations of a parameterized type's type argument.
|
TypeDescription.Generic.AnnotationReader |
ofTypeVariableBoundType(int index)
Returns a reader for type annotations of a type variable's bound.
|
TypeDescription.Generic.AnnotationReader |
ofWildcardLowerBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard lower bound.
|
TypeDescription.Generic.AnnotationReader |
ofWildcardUpperBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard upper bound.
|
AnnotatedElement |
resolve()
Resolves the underlying
AnnotatedElement . |
static final TypeDescription.Generic.AnnotationReader.Dispatcher DISPATCHER
AnnotatedElement resolve()
AnnotatedElement
.AnnotationList asList()
TypeDescription.Generic.AnnotationReader ofWildcardUpperBoundType(int index)
index
- The wildcard bound's index.TypeDescription.Generic.AnnotationReader ofWildcardLowerBoundType(int index)
index
- The wildcard bound's index.TypeDescription.Generic.AnnotationReader ofTypeVariableBoundType(int index)
index
- The bound's index.TypeDescription.Generic.AnnotationReader ofTypeArgument(int index)
index
- The bound's index.TypeDescription.Generic.AnnotationReader ofOwnerType()
Returns a reader for type annotations of a parameterized type's owner type.
Important: This feature is not currently implemented by the Java reflection API.
TypeDescription.Generic.AnnotationReader ofOuterClass()
Returns a reader for type annotations of an inner class type's outer type.
Important: This feature is not currently implemented by the Java reflection API.
TypeDescription.Generic.AnnotationReader ofComponentType()
Copyright © 2014–2020. All rights reserved.