Package net.bytebuddy.description.method
Enum ParameterDescription.ForLoadedParameter.Dispatcher.ForLegacyVm
- java.lang.Object
-
- java.lang.Enum<ParameterDescription.ForLoadedParameter.Dispatcher.ForLegacyVm>
-
- net.bytebuddy.description.method.ParameterDescription.ForLoadedParameter.Dispatcher.ForLegacyVm
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ParameterDescription.ForLoadedParameter.Dispatcher.ForLegacyVm>
,ParameterDescription.ForLoadedParameter.Dispatcher
- Enclosing interface:
- ParameterDescription.ForLoadedParameter.Dispatcher
public static enum ParameterDescription.ForLoadedParameter.Dispatcher.ForLegacyVm extends java.lang.Enum<ParameterDescription.ForLoadedParameter.Dispatcher.ForLegacyVm> implements ParameterDescription.ForLoadedParameter.Dispatcher
A dispatcher for a legacy VM that does not know thejava.lang.reflect.Parameter
type that only throws exceptions on any property extraction.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.method.ParameterDescription.ForLoadedParameter.Dispatcher
ParameterDescription.ForLoadedParameter.Dispatcher.CreationAction, ParameterDescription.ForLoadedParameter.Dispatcher.ForJava8CapableVm, ParameterDescription.ForLoadedParameter.Dispatcher.ForLegacyVm
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForLegacyVm()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getModifiers(java.lang.reflect.AccessibleObject executable, int index)
Returns the given parameter's modifiers.java.lang.String
getName(java.lang.reflect.AccessibleObject executable, int index)
Returns the given parameter's implicit or explicit name.boolean
isNamePresent(java.lang.reflect.AccessibleObject executable, int index)
Returnstrue
if the given parameter has an explicit name.static ParameterDescription.ForLoadedParameter.Dispatcher.ForLegacyVm
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ParameterDescription.ForLoadedParameter.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 ParameterDescription.ForLoadedParameter.Dispatcher.ForLegacyVm INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static ParameterDescription.ForLoadedParameter.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 (ParameterDescription.ForLoadedParameter.Dispatcher.ForLegacyVm c : ParameterDescription.ForLoadedParameter.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 ParameterDescription.ForLoadedParameter.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
-
getModifiers
public int getModifiers(java.lang.reflect.AccessibleObject executable, int index)
Returns the given parameter's modifiers.- Specified by:
getModifiers
in interfaceParameterDescription.ForLoadedParameter.Dispatcher
- Parameters:
executable
- The executable to introspect.index
- The parameter's index.- Returns:
- The parameter's modifiers.
-
isNamePresent
public boolean isNamePresent(java.lang.reflect.AccessibleObject executable, int index)
Returnstrue
if the given parameter has an explicit name.- Specified by:
isNamePresent
in interfaceParameterDescription.ForLoadedParameter.Dispatcher
- Parameters:
executable
- The parameter to introspect.index
- The parameter's index.- Returns:
true
if the given parameter has an explicit name.
-
getName
public java.lang.String getName(java.lang.reflect.AccessibleObject executable, int index)
Returns the given parameter's implicit or explicit name.- Specified by:
getName
in interfaceParameterDescription.ForLoadedParameter.Dispatcher
- Parameters:
executable
- The parameter to introspect.index
- The parameter's index.- Returns:
- The parameter's name.
-
-