public static interface TypeDescription.Generic.AnnotationReader.Dispatcher
Modifier and Type | Interface and Description |
---|---|
static class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm
A dispatcher for a modern JVM that supports type annotations.
|
static class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm
A dispatcher for
TypeDescription.Generic.AnnotationReader s on a legacy VM that does not support 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.
|
TypeDescription.Generic.AnnotationReader resolveTypeVariable(TypeVariable<?> typeVariable)
typeVariable
- The type variable to represent.TypeDescription.Generic.AnnotationReader resolveSuperClassType(Class<?> type)
type
- The type to represent.TypeDescription.Generic.AnnotationReader resolveInterfaceType(Class<?> type, int index)
type
- The type to represent.index
- The index of the interface.TypeDescription.Generic.AnnotationReader resolveFieldType(Field field)
field
- The field to represent.TypeDescription.Generic.AnnotationReader resolveReturnType(Method method)
method
- The method to represent.TypeDescription.Generic.AnnotationReader resolveParameterType(AccessibleObject executable, int index)
executable
- The executable to represent.index
- The type argument's index.TypeDescription.Generic.AnnotationReader resolveExceptionType(AccessibleObject executable, int index)
executable
- The executable to represent.index
- The type argument's index.TypeDescription.Generic resolveReceiverType(AccessibleObject executable)
null
is returned.executable
- The executable for which the receiver type should be resolved.null
.TypeDescription.Generic resolve(AnnotatedElement annotatedType)
annotatedType
- The loaded annotated type.Copyright © 2014–2016. All rights reserved.