@HashCodeAndEqualsPlugin.Enhance public static class TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm extends 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
NO_ARGUMENTS
Modifier | Constructor and Description |
---|---|
protected |
ForJava8CapableVm(Method getAnnotatedSuperclass,
Method getAnnotatedInterfaces,
Method getAnnotatedType,
Method getAnnotatedReturnType,
Method getAnnotatedParameterTypes,
Method getAnnotatedExceptionTypes,
Method getAnnotatedReceiverType,
Method getType)
Creates a new dispatcher for a VM that supports type annotations.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription.Generic |
resolve(AnnotatedElement annotatedType)
Resolves the annotated type as generic type description.
|
TypeDescription.Generic.AnnotationReader |
resolveExceptionType(AccessibleObject executable,
int index)
Resolves a loaded executable's exception type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
resolveFieldType(Field field)
Resolves a loaded field's type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
resolveInterfaceType(Class<?> type,
int index)
Resolves a loaded type's interface type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
resolveParameterType(AccessibleObject executable,
int index)
Resolves a loaded executable's type argument type's type annotations.
|
TypeDescription.Generic |
resolveReceiverType(AccessibleObject executable)
Resolves a method's or constructor's receiver type.
|
TypeDescription.Generic.AnnotationReader |
resolveReturnType(Method method)
Resolves a loaded method's return type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
resolveSuperClassType(Class<?> type)
Resolves a loaded type's super class's type annotations.
|
TypeDescription.Generic.AnnotationReader |
resolveTypeVariable(TypeVariable<?> typeVariable)
Resolves a formal type variable's type annotations.
|
protected ForJava8CapableVm(Method getAnnotatedSuperclass, Method getAnnotatedInterfaces, Method getAnnotatedType, Method getAnnotatedReturnType, Method getAnnotatedParameterTypes, Method getAnnotatedExceptionTypes, Method getAnnotatedReceiverType, 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(TypeVariable<?> typeVariable)
TypeDescription.Generic.AnnotationReader.Dispatcher
resolveTypeVariable
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
typeVariable
- The type variable to represent.public TypeDescription.Generic.AnnotationReader resolveSuperClassType(Class<?> type)
TypeDescription.Generic.AnnotationReader.Dispatcher
resolveSuperClassType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
type
- The type to represent.public TypeDescription.Generic.AnnotationReader resolveInterfaceType(Class<?> type, int index)
TypeDescription.Generic.AnnotationReader.Dispatcher
resolveInterfaceType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
type
- The type to represent.index
- The index of the interface.public TypeDescription.Generic.AnnotationReader resolveFieldType(Field field)
TypeDescription.Generic.AnnotationReader.Dispatcher
resolveFieldType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
field
- The field to represent.public TypeDescription.Generic.AnnotationReader resolveReturnType(Method method)
TypeDescription.Generic.AnnotationReader.Dispatcher
resolveReturnType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
method
- The method to represent.public TypeDescription.Generic.AnnotationReader resolveParameterType(AccessibleObject executable, int index)
TypeDescription.Generic.AnnotationReader.Dispatcher
resolveParameterType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
executable
- The executable to represent.index
- The type argument's index.public TypeDescription.Generic.AnnotationReader resolveExceptionType(AccessibleObject executable, int index)
TypeDescription.Generic.AnnotationReader.Dispatcher
resolveExceptionType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
executable
- The executable to represent.index
- The type argument's index.public TypeDescription.Generic resolveReceiverType(AccessibleObject executable)
TypeDescription.Generic.AnnotationReader.Dispatcher
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(AnnotatedElement annotatedType)
TypeDescription.Generic.AnnotationReader.Dispatcher
resolve
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
annotatedType
- The loaded annotated type.Copyright © 2014–2018. All rights reserved.