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.InitializableAn 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.Dispatcherinitialize()Initializes the dispatcher, if required.java.lang.Class<?>lookupType(java.lang.Object lookup)Returns the lookup type of a givenjava.lang.invoke.MethodHandles$Lookupinstance.java.lang.ObjectpublicLookup()Returns a publicjava.lang.invoke.MethodHandles.Lookupinstance.
-
-
-
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.Lookupinstance.- Returns:
- A public
java.lang.invoke.MethodHandles.Lookupinstance.
-
lookupType
java.lang.Class<?> lookupType(java.lang.Object lookup)
Returns the lookup type of a givenjava.lang.invoke.MethodHandles$Lookupinstance.- Parameters:
lookup- Ajava.lang.invoke.MethodHandles$Lookupinstance.- Returns:
- The provided instance's lookup type.
-
-