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 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 JavaConstant.MethodHandle.Dispatcher
initialize()
Initializes the dispatcher, if required.java.lang.Class<?>
lookupType(java.lang.Object lookup)
Returns the lookup type of a givenjava.lang.invoke.MethodHandles$Lookup
instance.java.lang.Object
publicLookup()
Returns a publicjava.lang.invoke.MethodHandles.Lookup
instance.static JavaConstant.MethodHandle.Dispatcher.ForLegacyVm
valueOf(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:
initialize
in interfaceJavaConstant.MethodHandle.Dispatcher.Initializable
- Returns:
- The initialized dispatcher.
-
publicLookup
public java.lang.Object publicLookup()
Returns a publicjava.lang.invoke.MethodHandles.Lookup
instance.- Specified by:
publicLookup
in interfaceJavaConstant.MethodHandle.Dispatcher.Initializable
- Returns:
- A public
java.lang.invoke.MethodHandles.Lookup
instance.
-
lookupType
public java.lang.Class<?> lookupType(java.lang.Object lookup)
Returns the lookup type of a givenjava.lang.invoke.MethodHandles$Lookup
instance.- Specified by:
lookupType
in interfaceJavaConstant.MethodHandle.Dispatcher.Initializable
- Parameters:
lookup
- Ajava.lang.invoke.MethodHandles$Lookup
instance.- Returns:
- The provided instance's lookup type.
-
-