Package net.bytebuddy.description.method
Enum ParameterList.ForLoadedExecutable.Dispatcher.ForLegacyVm
- java.lang.Object
-
- java.lang.Enum<ParameterList.ForLoadedExecutable.Dispatcher.ForLegacyVm>
-
- net.bytebuddy.description.method.ParameterList.ForLoadedExecutable.Dispatcher.ForLegacyVm
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ParameterList.ForLoadedExecutable.Dispatcher.ForLegacyVm>,ParameterList.ForLoadedExecutable.Dispatcher
- Enclosing interface:
- ParameterList.ForLoadedExecutable.Dispatcher
public static enum ParameterList.ForLoadedExecutable.Dispatcher.ForLegacyVm extends java.lang.Enum<ParameterList.ForLoadedExecutable.Dispatcher.ForLegacyVm> implements ParameterList.ForLoadedExecutable.Dispatcher
A dispatcher for a legacy VM that does not support thejava.lang.reflect.Parametertype.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.method.ParameterList.ForLoadedExecutable.Dispatcher
ParameterList.ForLoadedExecutable.Dispatcher.CreationAction, ParameterList.ForLoadedExecutable.Dispatcher.ForJava8CapableVm, ParameterList.ForLoadedExecutable.Dispatcher.ForLegacyVm
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCEThe singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description privateForLegacyVm()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterList<ParameterDescription.InDefinedShape>describe(java.lang.reflect.Constructor<?> constructor, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)Describes aConstructor's parameters of the given VM.ParameterList<ParameterDescription.InDefinedShape>describe(java.lang.reflect.Method method, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)Describes aMethod's parameters of the given VM.intgetParameterCount(java.lang.Object executable)Returns the amount of parameters of a given executable..static ParameterList.ForLoadedExecutable.Dispatcher.ForLegacyVmvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ParameterList.ForLoadedExecutable.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 ParameterList.ForLoadedExecutable.Dispatcher.ForLegacyVm INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static ParameterList.ForLoadedExecutable.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 (ParameterList.ForLoadedExecutable.Dispatcher.ForLegacyVm c : ParameterList.ForLoadedExecutable.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 ParameterList.ForLoadedExecutable.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
-
getParameterCount
public int getParameterCount(java.lang.Object executable)
Returns the amount of parameters of a given executable..- Specified by:
getParameterCountin interfaceParameterList.ForLoadedExecutable.Dispatcher- Parameters:
executable- The executable for which the amount of parameters should be found.- Returns:
- The amount of parameters of the given executable.
-
describe
public ParameterList<ParameterDescription.InDefinedShape> describe(java.lang.reflect.Constructor<?> constructor, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Describes aConstructor's parameters of the given VM.- Specified by:
describein interfaceParameterList.ForLoadedExecutable.Dispatcher- Parameters:
constructor- The constructor for which the parameters should be described.parameterAnnotationSource- The parameter annotation source to query.- Returns:
- A list describing the constructor's parameters.
-
describe
public ParameterList<ParameterDescription.InDefinedShape> describe(java.lang.reflect.Method method, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Describes aMethod's parameters of the given VM.- Specified by:
describein interfaceParameterList.ForLoadedExecutable.Dispatcher- Parameters:
method- The method for which the parameters should be described.parameterAnnotationSource- The parameter annotation source to query.- Returns:
- A list describing the method's parameters.
-
-