Package net.bytebuddy.agent.builder
Interface AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader
- All Known Implementing Classes:
AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.Unavailable
,AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingMethodHandleLookup
,AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingUnsafe
- Enclosing class:
- AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory
protected static interface AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader
A loader is responsible for loading a generated class file in the current VM.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
An implementation that indicates that no loader is available.static enum
A loader that uses a method handle lookup object to load a class.static enum
A loader that is using unsafe API to load a lambda implementation. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(org.objectweb.asm.MethodVisitor methodVisitor) Applies this loader.int
Returns the local variable length that is required to implement this loader.int
Returns the stack size that is required to implement this loader.
-
Method Details
-
apply
void apply(org.objectweb.asm.MethodVisitor methodVisitor) Applies this loader.- Parameters:
methodVisitor
- The method visitor to use.
-
getStackSize
int getStackSize()Returns the stack size that is required to implement this loader.- Returns:
- The stack size that is required to implement this loader.
-
getLocalVariableLength
int getLocalVariableLength()Returns the local variable length that is required to implement this loader.- Returns:
- The local variable length that is required to implement this loader.
-