public static enum ClassInjector.UsingLookup.Dispatcher.ForLegacyVm extends Enum<ClassInjector.UsingLookup.Dispatcher.ForLegacyVm> implements ClassInjector.UsingLookup.Dispatcher
ClassInjector.UsingLookup.Dispatcher.Creator, ClassInjector.UsingLookup.Dispatcher.ForJava9CapableVm, ClassInjector.UsingLookup.Dispatcher.ForLegacyVm
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
defineClass(Object lookup,
byte[] binaryRepresentation)
Defines a class.
|
Object |
dropLookupMode(Object lookup,
int mode)
Drops a given lookup mode from a lookup instance.
|
boolean |
isAlive()
Indicates if this dispatcher is available on the current VM.
|
int |
lookupModes(Object lookup)
Returns a lookup objects lookup types.
|
Class<?> |
lookupType(Object lookup)
Returns the lookup type for a given method handle lookup.
|
static ClassInjector.UsingLookup.Dispatcher.ForLegacyVm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClassInjector.UsingLookup.Dispatcher.ForLegacyVm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClassInjector.UsingLookup.Dispatcher.ForLegacyVm INSTANCE
public static ClassInjector.UsingLookup.Dispatcher.ForLegacyVm[] values()
for (ClassInjector.UsingLookup.Dispatcher.ForLegacyVm c : ClassInjector.UsingLookup.Dispatcher.ForLegacyVm.values()) System.out.println(c);
public static ClassInjector.UsingLookup.Dispatcher.ForLegacyVm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isAlive()
ClassInjector.UsingLookup.Dispatcher
isAlive
in interface ClassInjector.UsingLookup.Dispatcher
true
if this dispatcher is alive.public Class<?> lookupType(Object lookup)
ClassInjector.UsingLookup.Dispatcher
lookupType
in interface ClassInjector.UsingLookup.Dispatcher
lookup
- The lookup instance.public int lookupModes(Object lookup)
ClassInjector.UsingLookup.Dispatcher
lookupModes
in interface ClassInjector.UsingLookup.Dispatcher
lookup
- The lookup instance.public Object dropLookupMode(Object lookup, int mode)
ClassInjector.UsingLookup.Dispatcher
dropLookupMode
in interface ClassInjector.UsingLookup.Dispatcher
lookup
- The lookup instance.mode
- The modes to drop.public Class<?> defineClass(Object lookup, byte[] binaryRepresentation)
ClassInjector.UsingLookup.Dispatcher
defineClass
in interface ClassInjector.UsingLookup.Dispatcher
lookup
- The java.lang.invoke.MethodHandles$Lookup
instance to use.binaryRepresentation
- The defined class's binary representation.Copyright © 2014–2017. All rights reserved.