Package net.bytebuddy.utility
Enum JavaConstant.MethodType.Dispatcher.ForLegacyVm
- java.lang.Object
-
- java.lang.Enum<JavaConstant.MethodType.Dispatcher.ForLegacyVm>
-
- net.bytebuddy.utility.JavaConstant.MethodType.Dispatcher.ForLegacyVm
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JavaConstant.MethodType.Dispatcher.ForLegacyVm>
,JavaConstant.MethodType.Dispatcher
- Enclosing interface:
- JavaConstant.MethodType.Dispatcher
public static enum JavaConstant.MethodType.Dispatcher.ForLegacyVm extends java.lang.Enum<JavaConstant.MethodType.Dispatcher.ForLegacyVm> implements JavaConstant.MethodType.Dispatcher
A dispatcher for virtual machines that are not aware of thejava.lang.invoke.MethodType
type that was added in Java version 7.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.utility.JavaConstant.MethodType.Dispatcher
JavaConstant.MethodType.Dispatcher.CreationAction, JavaConstant.MethodType.Dispatcher.ForJava7CapableVm, JavaConstant.MethodType.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 java.lang.Class<?>[]
parameterArray(java.lang.Object methodType)
Extracts the parameter types of the supplied method type.java.lang.Class<?>
returnType(java.lang.Object methodType)
Extracts the return type of the supplied method type.static JavaConstant.MethodType.Dispatcher.ForLegacyVm
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JavaConstant.MethodType.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 JavaConstant.MethodType.Dispatcher.ForLegacyVm INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static JavaConstant.MethodType.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 (JavaConstant.MethodType.Dispatcher.ForLegacyVm c : JavaConstant.MethodType.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 JavaConstant.MethodType.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
-
returnType
public java.lang.Class<?> returnType(java.lang.Object methodType)
Extracts the return type of the supplied method type.- Specified by:
returnType
in interfaceJavaConstant.MethodType.Dispatcher
- Parameters:
methodType
- An instance ofjava.lang.invoke.MethodType
.- Returns:
- The return type that is described by the supplied instance.
-
parameterArray
public java.lang.Class<?>[] parameterArray(java.lang.Object methodType)
Extracts the parameter types of the supplied method type.- Specified by:
parameterArray
in interfaceJavaConstant.MethodType.Dispatcher
- Parameters:
methodType
- An instance ofjava.lang.invoke.MethodType
.- Returns:
- The parameter types that are described by the supplied instance.
-
-