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.
|
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.
|
Object |
resolve(Object lookup,
Class<?> type)
Resolves the supplied lookup instance's access scope for the supplied type.
|
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 resolve(Object lookup, Class<?> type)
lookup
- The lookup to use.type
- The type to resolve the scope for.Copyright © 2014–2019. All rights reserved.