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 enumAn implementation that indicates that no loader is available.static enumA loader that uses a method handle lookup object to load a class.static enumA loader that is using unsafe API to load a lambda implementation. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.objectweb.asm.MethodVisitor methodVisitor) Applies this loader.intReturns the local variable length that is required to implement this loader.intReturns 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.
-