protected static interface ClassInjector.UsingLookup.Dispatcher
Modifier and Type | Interface and Description |
---|---|
static class |
ClassInjector.UsingLookup.Dispatcher.Creator
An action for defining a dispatcher.
|
static class |
ClassInjector.UsingLookup.Dispatcher.ForJava9CapableVm
A dispatcher for a Java 9 capable VM that supports class definition via method handles.
|
static class |
ClassInjector.UsingLookup.Dispatcher.ForLegacyVm
A dispatcher for a legacy VM that does not support class definition via method handles.
|
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.
|
boolean isAlive()
true
if this dispatcher is alive.Class<?> lookupType(Object lookup)
lookup
- The lookup instance.int lookupModes(Object lookup)
lookup
- The lookup instance.Object dropLookupMode(Object lookup, int mode)
lookup
- The lookup instance.mode
- The modes to drop.Copyright © 2014–2017. All rights reserved.