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.ForJava8CapableVm, TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm| 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 |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
protected static TypeDescription.Generic.AnnotationReader.Dispatcher |
make()
Creates a new annotation reader dispatcher if this is possible or falls back to a no-op version if the
current JVM does not support this feature.
|
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.
|
String |
toString() |
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.protected static TypeDescription.Generic.AnnotationReader.Dispatcher make()
public TypeDescription.Generic.AnnotationReader resolveTypeVariable(TypeVariable<?> typeVariable)
TypeDescription.Generic.AnnotationReader.DispatcherresolveTypeVariable in interface TypeDescription.Generic.AnnotationReader.DispatchertypeVariable - The type variable to represent.public TypeDescription.Generic.AnnotationReader resolveSuperClassType(Class<?> type)
TypeDescription.Generic.AnnotationReader.DispatcherresolveSuperClassType in interface TypeDescription.Generic.AnnotationReader.Dispatchertype - The type to represent.public TypeDescription.Generic.AnnotationReader resolveInterfaceType(Class<?> type, int index)
TypeDescription.Generic.AnnotationReader.DispatcherresolveInterfaceType in interface TypeDescription.Generic.AnnotationReader.Dispatchertype - The type to represent.index - The index of the interface.public TypeDescription.Generic.AnnotationReader resolveFieldType(Field field)
TypeDescription.Generic.AnnotationReader.DispatcherresolveFieldType in interface TypeDescription.Generic.AnnotationReader.Dispatcherfield - The field to represent.public TypeDescription.Generic.AnnotationReader resolveReturnType(Method method)
TypeDescription.Generic.AnnotationReader.DispatcherresolveReturnType in interface TypeDescription.Generic.AnnotationReader.Dispatchermethod - The method to represent.public TypeDescription.Generic.AnnotationReader resolveParameterType(AccessibleObject executable, int index)
TypeDescription.Generic.AnnotationReader.DispatcherresolveParameterType in interface TypeDescription.Generic.AnnotationReader.Dispatcherexecutable - The executable to represent.index - The type argument's index.public TypeDescription.Generic.AnnotationReader resolveExceptionType(AccessibleObject executable, int index)
TypeDescription.Generic.AnnotationReader.DispatcherresolveExceptionType in interface TypeDescription.Generic.AnnotationReader.Dispatcherexecutable - The executable to represent.index - The type argument's index.public TypeDescription.Generic resolveReceiverType(AccessibleObject executable)
TypeDescription.Generic.AnnotationReader.Dispatchernull is returned.resolveReceiverType in interface TypeDescription.Generic.AnnotationReader.Dispatcherexecutable - The executable for which the receiver type should be resolved.null.public TypeDescription.Generic resolve(AnnotatedElement annotatedType)
TypeDescription.Generic.AnnotationReader.Dispatcherresolve in interface TypeDescription.Generic.AnnotationReader.DispatcherannotatedType - The loaded annotated type.Copyright © 2014–2016. All rights reserved.