@HashCodeAndEqualsPlugin.Enhance public static class TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm extends java.lang.Object implements TypeDescription.Generic.AnnotationReader.Dispatcher
Modifier and Type | Class and Description |
---|---|
protected class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedExceptionType
A delegating annotation reader for an annotated exception variable.
|
protected class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedFieldType
A delegating annotation reader for an annotated field variable.
|
protected class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedInterfaceType
A delegating annotation reader for an annotated interface type.
|
protected class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedParameterizedType
A delegating annotation reader for an annotated parameter variable.
|
protected class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedReturnType
A delegating annotation reader for an annotated return variable.
|
protected class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedSuperClass
A delegating annotation reader for an annotated super type.
|
protected static class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedTypeVariableType
A delegating annotation reader for an annotated type variable.
|
protected static class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.Resolved
A delegator for an existing
java.lang.reflect.AnnotatedElement . |
TypeDescription.Generic.AnnotationReader.Dispatcher.CreationAction, TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm, TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Method |
getAnnotatedExceptionTypes
The
java.lang.reflect.Executable#getAnnotatedExceptionTypes method. |
private java.lang.reflect.Method |
getAnnotatedInterfaces
The
java.lang.Class#getAnnotatedInterfaces method. |
private java.lang.reflect.Method |
getAnnotatedParameterTypes
The
java.lang.reflect.Executable#getAnnotatedParameterTypes method. |
private java.lang.reflect.Method |
getAnnotatedReceiverType
The
java.lang.reflect.Executable#getAnnotatedReceiverType method. |
private java.lang.reflect.Method |
getAnnotatedReturnType
The
java.lang.reflect.Method#getAnnotatedReturnType method. |
private java.lang.reflect.Method |
getAnnotatedSuperclass
The
java.lang.Class#getAnnotatedSuperclass method. |
private java.lang.reflect.Method |
getAnnotatedType
The
java.lang.reflect.Field#getAnnotatedType method. |
private java.lang.reflect.Method |
getType
The
java.lang.reflect.AnnotatedType#getType method. |
NO_ARGUMENTS
Modifier | Constructor and Description |
---|---|
protected |
ForJava8CapableVm(java.lang.reflect.Method getAnnotatedSuperclass,
java.lang.reflect.Method getAnnotatedInterfaces,
java.lang.reflect.Method getAnnotatedType,
java.lang.reflect.Method getAnnotatedReturnType,
java.lang.reflect.Method getAnnotatedParameterTypes,
java.lang.reflect.Method getAnnotatedExceptionTypes,
java.lang.reflect.Method getAnnotatedReceiverType,
java.lang.reflect.Method getType)
Creates a new dispatcher for a VM that supports type annotations.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription.Generic |
resolve(java.lang.reflect.AnnotatedElement annotatedType)
Resolves the annotated type as generic type description.
|
TypeDescription.Generic.AnnotationReader |
resolveExceptionType(java.lang.reflect.AccessibleObject executable,
int index)
Resolves a loaded executable's exception type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
resolveFieldType(java.lang.reflect.Field field)
Resolves a loaded field's type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
resolveInterfaceType(java.lang.Class<?> type,
int index)
Resolves a loaded type's interface type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
resolveParameterType(java.lang.reflect.AccessibleObject executable,
int index)
Resolves a loaded executable's type argument type's type annotations.
|
TypeDescription.Generic |
resolveReceiverType(java.lang.reflect.AccessibleObject executable)
Resolves a method's or constructor's receiver type.
|
TypeDescription.Generic.AnnotationReader |
resolveReturnType(java.lang.reflect.Method method)
Resolves a loaded method's return type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
resolveSuperClassType(java.lang.Class<?> type)
Resolves a loaded type's super class's type annotations.
|
TypeDescription.Generic.AnnotationReader |
resolveTypeVariable(java.lang.reflect.TypeVariable<?> typeVariable)
Resolves a formal type variable's type annotations.
|
private final java.lang.reflect.Method getAnnotatedSuperclass
java.lang.Class#getAnnotatedSuperclass
method.private final java.lang.reflect.Method getAnnotatedInterfaces
java.lang.Class#getAnnotatedInterfaces
method.private final java.lang.reflect.Method getAnnotatedType
java.lang.reflect.Field#getAnnotatedType
method.private final java.lang.reflect.Method getAnnotatedReturnType
java.lang.reflect.Method#getAnnotatedReturnType
method.private final java.lang.reflect.Method getAnnotatedParameterTypes
java.lang.reflect.Executable#getAnnotatedParameterTypes
method.private final java.lang.reflect.Method getAnnotatedExceptionTypes
java.lang.reflect.Executable#getAnnotatedExceptionTypes
method.private final java.lang.reflect.Method getAnnotatedReceiverType
java.lang.reflect.Executable#getAnnotatedReceiverType
method.private final java.lang.reflect.Method getType
java.lang.reflect.AnnotatedType#getType
method.protected ForJava8CapableVm(java.lang.reflect.Method getAnnotatedSuperclass, java.lang.reflect.Method getAnnotatedInterfaces, java.lang.reflect.Method getAnnotatedType, java.lang.reflect.Method getAnnotatedReturnType, java.lang.reflect.Method getAnnotatedParameterTypes, java.lang.reflect.Method getAnnotatedExceptionTypes, java.lang.reflect.Method getAnnotatedReceiverType, java.lang.reflect.Method getType)
getAnnotatedSuperclass
- The java.lang.Class#getAnnotatedSuperclass
method.getAnnotatedInterfaces
- The java.lang.Class#getAnnotatedInterfaces
method.getAnnotatedType
- The java.lang.reflect.Field#getAnnotatedType
method.getAnnotatedReturnType
- The java.lang.reflect.Method#getAnnotatedReturnType
method.getAnnotatedParameterTypes
- The java.lang.reflect.Executable#getAnnotatedParameterTypes
method.getAnnotatedExceptionTypes
- The java.lang.reflect.Executable#getAnnotatedExceptionTypes
method.getAnnotatedReceiverType
- The java.lang.reflect.Executable#getAnnotatedReceiverType
method.getType
- The java.lang.reflect.AnnotatedType#getType
method.public TypeDescription.Generic.AnnotationReader resolveTypeVariable(java.lang.reflect.TypeVariable<?> typeVariable)
resolveTypeVariable
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
typeVariable
- The type variable to represent.public TypeDescription.Generic.AnnotationReader resolveSuperClassType(java.lang.Class<?> type)
resolveSuperClassType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
type
- The type to represent.public TypeDescription.Generic.AnnotationReader resolveInterfaceType(java.lang.Class<?> type, int index)
resolveInterfaceType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
type
- The type to represent.index
- The index of the interface.public TypeDescription.Generic.AnnotationReader resolveFieldType(java.lang.reflect.Field field)
resolveFieldType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
field
- The field to represent.public TypeDescription.Generic.AnnotationReader resolveReturnType(java.lang.reflect.Method method)
resolveReturnType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
method
- The method to represent.public TypeDescription.Generic.AnnotationReader resolveParameterType(java.lang.reflect.AccessibleObject executable, int index)
resolveParameterType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
executable
- The executable to represent.index
- The type argument's index.public TypeDescription.Generic.AnnotationReader resolveExceptionType(java.lang.reflect.AccessibleObject executable, int index)
resolveExceptionType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
executable
- The executable to represent.index
- The type argument's index.public TypeDescription.Generic resolveReceiverType(java.lang.reflect.AccessibleObject executable)
null
is returned.resolveReceiverType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
executable
- The executable for which the receiver type should be resolved.null
.public TypeDescription.Generic resolve(java.lang.reflect.AnnotatedElement annotatedType)
resolve
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
annotatedType
- The loaded annotated type.