Package net.bytebuddy.utility
Interface JavaConstant.MethodHandle.Dispatcher.Initializable
-
- All Known Implementing Classes:
JavaConstant.MethodHandle.Dispatcher.AbstractBase
,JavaConstant.MethodHandle.Dispatcher.ForJava7CapableVm
,JavaConstant.MethodHandle.Dispatcher.ForJava8CapableVm
,JavaConstant.MethodHandle.Dispatcher.ForLegacyVm
- Enclosing interface:
- JavaConstant.MethodHandle.Dispatcher
public static interface JavaConstant.MethodHandle.Dispatcher.Initializable
An initializable version of a dispatcher that is not yet made accessible.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
initialize
JavaConstant.MethodHandle.Dispatcher initialize()
Initializes the dispatcher, if required.- Returns:
- The initialized dispatcher.
-
publicLookup
java.lang.Object publicLookup()
Returns a publicjava.lang.invoke.MethodHandles.Lookup
instance.- Returns:
- A public
java.lang.invoke.MethodHandles.Lookup
instance.
-
lookupType
java.lang.Class<?> lookupType(java.lang.Object lookup)
Returns the lookup type of a givenjava.lang.invoke.MethodHandles$Lookup
instance.- Parameters:
lookup
- Ajava.lang.invoke.MethodHandles$Lookup
instance.- Returns:
- The provided instance's lookup type.
-
-