public static enum TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm extends Enum<TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm> implements TypeDescription.Generic.AnnotationReader.Dispatcher
TypeDescription.Generic.AnnotationReader
s on a legacy VM that does not support type annotations.TypeDescription.Generic.AnnotationReader.Dispatcher.CreationAction, TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm, TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
NO_ARGUMENTS
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.
|
static TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm INSTANCE
public static TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm[] values()
for (TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm c : TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm.values()) System.out.println(c);
public static TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic TypeDescription.Generic.AnnotationReader resolveTypeVariable(TypeVariable<?> typeVariable)
resolveTypeVariable
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
typeVariable
- The type variable to represent.public TypeDescription.Generic.AnnotationReader resolveSuperClassType(Class<?> type)
resolveSuperClassType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
type
- The type to represent.public TypeDescription.Generic.AnnotationReader resolveInterfaceType(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(Field field)
resolveFieldType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
field
- The field to represent.public TypeDescription.Generic.AnnotationReader resolveReturnType(Method method)
resolveReturnType
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
method
- The method to represent.public TypeDescription.Generic.AnnotationReader resolveParameterType(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(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(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(AnnotatedElement annotatedType)
resolve
in interface TypeDescription.Generic.AnnotationReader.Dispatcher
annotatedType
- The loaded annotated type.Copyright © 2014–2020. All rights reserved.