Package net.bytebuddy.dynamic.loading
Interface ClassInjector.UsingLookup.MethodHandles.Lookup
- Enclosing interface:
ClassInjector.UsingLookup.MethodHandles
@Proxied("java.lang.invoke.MethodHandles$Lookup")
public static interface ClassInjector.UsingLookup.MethodHandles.Lookup
A dispatcher for
java.lang.invoke.MethodHandles$Lookup.-
Method Summary
Modifier and TypeMethodDescriptionClass<?> defineClass(Object lookup, byte[] binaryRepresentation) Defines the represented class.Class<?> lookupClass(Object lookup) Returns the lookup type for a given method handle lookup.intlookupModes(Object lookup) Returns a lookup objects lookup types.
-
Method Details
-
lookupClass
Returns the lookup type for a given method handle lookup.- Parameters:
lookup- The lookup instance.- Returns:
- The lookup type.
-
lookupModes
Returns a lookup objects lookup types.- Parameters:
lookup- The lookup instance.- Returns:
- The modifiers indicating the instance's lookup modes.
-
defineClass
Defines the represented class.- Parameters:
lookup- The lookup instance.binaryRepresentation- The binary representation.- Returns:
- The defined class.
- Throws:
IllegalAccessException- If the definition implies an illegal access.
-