Package net.bytebuddy.utility
Enum JavaConstant.MethodHandle.Dispatcher.ForLegacyVm
- java.lang.Object
-
- java.lang.Enum<JavaConstant.MethodHandle.Dispatcher.ForLegacyVm>
-
- net.bytebuddy.utility.JavaConstant.MethodHandle.Dispatcher.ForLegacyVm
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<JavaConstant.MethodHandle.Dispatcher.ForLegacyVm>,JavaConstant.MethodHandle.Dispatcher.Initializable
- Enclosing interface:
- JavaConstant.MethodHandle.Dispatcher
public static enum JavaConstant.MethodHandle.Dispatcher.ForLegacyVm extends java.lang.Enum<JavaConstant.MethodHandle.Dispatcher.ForLegacyVm> implements JavaConstant.MethodHandle.Dispatcher.Initializable
A dispatcher that does not support method handles at all.
-
-
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 JavaConstant.MethodHandle.Dispatcherinitialize()Initializes the dispatcher, if required.java.lang.Class<?>lookupType(java.lang.Object lookup)Returns the lookup type of a givenjava.lang.invoke.MethodHandles$Lookupinstance.java.lang.ObjectpublicLookup()Returns a publicjava.lang.invoke.MethodHandles.Lookupinstance.static JavaConstant.MethodHandle.Dispatcher.ForLegacyVmvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JavaConstant.MethodHandle.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.MethodHandle.Dispatcher.ForLegacyVm INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static JavaConstant.MethodHandle.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.MethodHandle.Dispatcher.ForLegacyVm c : JavaConstant.MethodHandle.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.MethodHandle.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
-
initialize
public JavaConstant.MethodHandle.Dispatcher initialize()
Initializes the dispatcher, if required.- Specified by:
initializein interfaceJavaConstant.MethodHandle.Dispatcher.Initializable- Returns:
- The initialized dispatcher.
-
publicLookup
public java.lang.Object publicLookup()
Returns a publicjava.lang.invoke.MethodHandles.Lookupinstance.- Specified by:
publicLookupin interfaceJavaConstant.MethodHandle.Dispatcher.Initializable- Returns:
- A public
java.lang.invoke.MethodHandles.Lookupinstance.
-
lookupType
public java.lang.Class<?> lookupType(java.lang.Object lookup)
Returns the lookup type of a givenjava.lang.invoke.MethodHandles$Lookupinstance.- Specified by:
lookupTypein interfaceJavaConstant.MethodHandle.Dispatcher.Initializable- Parameters:
lookup- Ajava.lang.invoke.MethodHandles$Lookupinstance.- Returns:
- The provided instance's lookup type.
-
-