@HashCodeAndEqualsPlugin.Enhance protected abstract static class TypeDescription.Generic.AnnotationReader.Delegator.Chained extends TypeDescription.Generic.AnnotationReader.Delegator
TypeDescription.Generic.AnnotationReader.Delegator.Chained
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 TypeDescription.Generic.AnnotationReader |
annotationReader
The underlying annotation reader.
|
protected static java.lang.reflect.Method |
NOT_AVAILABLE
Indicates that a method is not available on the current VM.
|
NO_ARGUMENTS
DISPATCHER
Modifier | Constructor and Description |
---|---|
protected |
Chained(TypeDescription.Generic.AnnotationReader annotationReader)
Creates a new chained annotation reader.
|
Modifier and Type | Method and Description |
---|---|
protected static java.lang.reflect.Method |
of(java.lang.String typeName,
java.lang.String methodName)
Resolves the method to invoke or returns
null if the method does not exist on the current VM. |
java.lang.reflect.AnnotatedElement |
resolve()
Resolves the underlying
AnnotatedElement . |
protected abstract java.lang.reflect.AnnotatedElement |
resolve(java.lang.reflect.AnnotatedElement annotatedElement)
Resolves the type annotations from a given annotated element into the annotated element that this instance represents.
|
asList, ofComponentType, ofOuterClass, ofOwnerType, ofTypeArgument, ofTypeVariableBoundType, ofWildcardLowerBoundType, ofWildcardUpperBoundType
protected static final java.lang.reflect.Method NOT_AVAILABLE
protected final TypeDescription.Generic.AnnotationReader annotationReader
protected Chained(TypeDescription.Generic.AnnotationReader annotationReader)
annotationReader
- The underlying annotation reader.protected static java.lang.reflect.Method of(java.lang.String typeName, java.lang.String methodName)
null
if the method does not exist on the current VM.typeName
- The declaring type's name.methodName
- The method's name.null
.public java.lang.reflect.AnnotatedElement resolve()
AnnotatedElement
.protected abstract java.lang.reflect.AnnotatedElement resolve(java.lang.reflect.AnnotatedElement annotatedElement)
annotatedElement
- The original annotated element.