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 Classes Modifier and Type Interface Description static class
AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.Unavailable
An implementation that indicates that no loader is available.static class
AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingMethodHandleLookup
A loader that uses a method handle lookup object to load a class.static class
AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingUnsafe
A loader that is using unsafe API to load a lambda implementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
apply(org.objectweb.asm.MethodVisitor methodVisitor)
Applies this loader.int
getLocalVariableLength()
Returns the local variable length that is required to implement this loader.int
getStackSize()
Returns the stack size that is required to implement this loader.
-
-
-
Method Detail
-
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.
-
-