Package net.bytebuddy.description.type
Enum TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm
- java.lang.Object
-
- java.lang.Enum<TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm>
-
- net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm>,TypeDescription.Generic.AnnotationReader.Dispatcher
- Enclosing interface:
- TypeDescription.Generic.AnnotationReader.Dispatcher
public static enum TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm extends java.lang.Enum<TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm> implements TypeDescription.Generic.AnnotationReader.Dispatcher
A dispatcher forTypeDescription.Generic.AnnotationReaders on a legacy VM that does not support type annotations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Dispatcher
TypeDescription.Generic.AnnotationReader.Dispatcher.CreationAction, TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm, TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCEThe singleton instance.
-
Field Summary
-
Fields inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Dispatcher
NO_ARGUMENTS
-
-
Constructor Summary
Constructors Modifier Constructor Description privateForLegacyVm()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDescription.Genericresolve(java.lang.reflect.AnnotatedElement annotatedType)Resolves the annotated type as generic type description.TypeDescription.Generic.AnnotationReaderresolveExceptionType(java.lang.reflect.AccessibleObject executable, int index)Resolves a loaded executable's exception type's type annotations.TypeDescription.Generic.AnnotationReaderresolveFieldType(java.lang.reflect.Field field)Resolves a loaded field's type's type annotations.TypeDescription.Generic.AnnotationReaderresolveInterfaceType(java.lang.Class<?> type, int index)Resolves a loaded type's interface type's type annotations.TypeDescription.Generic.AnnotationReaderresolveParameterType(java.lang.reflect.AccessibleObject executable, int index)Resolves a loaded executable's type argument type's type annotations.TypeDescription.GenericresolveReceiverType(java.lang.reflect.AccessibleObject executable)Resolves a method's or constructor's receiver type.TypeDescription.Generic.AnnotationReaderresolveReturnType(java.lang.reflect.Method method)Resolves a loaded method's return type's type annotations.TypeDescription.Generic.AnnotationReaderresolveSuperClassType(java.lang.Class<?> type)Resolves a loaded type's super class's type annotations.TypeDescription.Generic.AnnotationReaderresolveTypeVariable(java.lang.reflect.TypeVariable<?> typeVariable)Resolves a formal type variable's type annotations.static TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVmvalueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm c : TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
resolveTypeVariable
public TypeDescription.Generic.AnnotationReader resolveTypeVariable(java.lang.reflect.TypeVariable<?> typeVariable)
Resolves a formal type variable's type annotations.- Specified by:
resolveTypeVariablein interfaceTypeDescription.Generic.AnnotationReader.Dispatcher- Parameters:
typeVariable- The type variable to represent.- Returns:
- A suitable annotation reader.
-
resolveSuperClassType
public TypeDescription.Generic.AnnotationReader resolveSuperClassType(java.lang.Class<?> type)
Resolves a loaded type's super class's type annotations.- Specified by:
resolveSuperClassTypein interfaceTypeDescription.Generic.AnnotationReader.Dispatcher- Parameters:
type- The type to represent.- Returns:
- A suitable annotation reader.
-
resolveInterfaceType
public TypeDescription.Generic.AnnotationReader resolveInterfaceType(java.lang.Class<?> type, int index)
Resolves a loaded type's interface type's type annotations.- Specified by:
resolveInterfaceTypein interfaceTypeDescription.Generic.AnnotationReader.Dispatcher- Parameters:
type- The type to represent.index- The index of the interface.- Returns:
- A suitable annotation reader.
-
resolveFieldType
public TypeDescription.Generic.AnnotationReader resolveFieldType(java.lang.reflect.Field field)
Resolves a loaded field's type's type annotations.- Specified by:
resolveFieldTypein interfaceTypeDescription.Generic.AnnotationReader.Dispatcher- Parameters:
field- The field to represent.- Returns:
- A suitable annotation reader.
-
resolveReturnType
public TypeDescription.Generic.AnnotationReader resolveReturnType(java.lang.reflect.Method method)
Resolves a loaded method's return type's type annotations.- Specified by:
resolveReturnTypein interfaceTypeDescription.Generic.AnnotationReader.Dispatcher- Parameters:
method- The method to represent.- Returns:
- A suitable annotation reader.
-
resolveParameterType
public TypeDescription.Generic.AnnotationReader resolveParameterType(java.lang.reflect.AccessibleObject executable, int index)
Resolves a loaded executable's type argument type's type annotations.- Specified by:
resolveParameterTypein interfaceTypeDescription.Generic.AnnotationReader.Dispatcher- Parameters:
executable- The executable to represent.index- The type argument's index.- Returns:
- A suitable annotation reader.
-
resolveExceptionType
public TypeDescription.Generic.AnnotationReader resolveExceptionType(java.lang.reflect.AccessibleObject executable, int index)
Resolves a loaded executable's exception type's type annotations.- Specified by:
resolveExceptionTypein interfaceTypeDescription.Generic.AnnotationReader.Dispatcher- Parameters:
executable- The executable to represent.index- The type argument's index.- Returns:
- A suitable annotation reader.
-
resolveReceiverType
public TypeDescription.Generic resolveReceiverType(java.lang.reflect.AccessibleObject executable)
Resolves a method's or constructor's receiver type. If receiver types are not available on the executing VM,nullis returned.- Specified by:
resolveReceiverTypein interfaceTypeDescription.Generic.AnnotationReader.Dispatcher- Parameters:
executable- The executable for which the receiver type should be resolved.- Returns:
- The executable's receiver type or
null.
-
resolve
public TypeDescription.Generic resolve(java.lang.reflect.AnnotatedElement annotatedType)
Resolves the annotated type as generic type description.- Specified by:
resolvein interfaceTypeDescription.Generic.AnnotationReader.Dispatcher- Parameters:
annotatedType- The loaded annotated type.- Returns:
- A description of the supplied annotated type.
-
-