public abstract static class TypeDescription.Generic.AnnotationReader.Delegator extends Object implements TypeDescription.Generic.AnnotationReader
Modifier and Type | Class and Description |
---|---|
protected static class |
TypeDescription.Generic.AnnotationReader.Delegator.Chained
A chained delegator that bases its result on an underlying annotation reader.
|
TypeDescription.Generic.AnnotationReader.Delegator, TypeDescription.Generic.AnnotationReader.Dispatcher, TypeDescription.Generic.AnnotationReader.ForComponentType, TypeDescription.Generic.AnnotationReader.ForOwnerType, TypeDescription.Generic.AnnotationReader.ForTypeArgument, TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType, TypeDescription.Generic.AnnotationReader.ForWildcardLowerBoundType, TypeDescription.Generic.AnnotationReader.ForWildcardUpperBoundType, TypeDescription.Generic.AnnotationReader.NoOp
Modifier and Type | Field and Description |
---|---|
protected static Object[] |
NO_ARGUMENTS
An empty array that can be used to indicate no arguments to avoid an allocation on a reflective call.
|
DISPATCHER
Constructor and Description |
---|
Delegator() |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolve
protected static final Object[] NO_ARGUMENTS
public TypeDescription.Generic.AnnotationReader ofWildcardUpperBoundType(int index)
ofWildcardUpperBoundType
in interface TypeDescription.Generic.AnnotationReader
index
- The wildcard bound's index.public TypeDescription.Generic.AnnotationReader ofWildcardLowerBoundType(int index)
ofWildcardLowerBoundType
in interface TypeDescription.Generic.AnnotationReader
index
- The wildcard bound's index.public TypeDescription.Generic.AnnotationReader ofTypeVariableBoundType(int index)
ofTypeVariableBoundType
in interface TypeDescription.Generic.AnnotationReader
index
- The bound's index.public TypeDescription.Generic.AnnotationReader ofTypeArgument(int index)
ofTypeArgument
in interface TypeDescription.Generic.AnnotationReader
index
- The bound's index.public 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.
ofOwnerType
in interface TypeDescription.Generic.AnnotationReader
public 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.
ofOuterClass
in interface TypeDescription.Generic.AnnotationReader
public TypeDescription.Generic.AnnotationReader ofComponentType()
ofComponentType
in interface TypeDescription.Generic.AnnotationReader
public AnnotationList asList()
asList
in interface TypeDescription.Generic.AnnotationReader
Copyright © 2014–2020. All rights reserved.