@HashCodeAndEqualsPlugin.Enhance protected static class CachedReturnPlugin.AdviceResolver.ExitAdviceByteCodeAppender extends Object implements ByteCodeAppender
ByteCodeAppender.Compound, ByteCodeAppender.Simple, ByteCodeAppender.Size| Modifier | Constructor and Description |
|---|---|
protected |
ExitAdviceByteCodeAppender(int load,
int store,
int convert,
int branch,
int size)
Creates a byte code appender for exit advice on a cached return plugin.
|
| Modifier and Type | Method and Description |
|---|---|
ByteCodeAppender.Size |
apply(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
MethodDescription instrumentedMethod)
Applies this byte code appender to a type creation process.
|
protected ExitAdviceByteCodeAppender(int load,
int store,
int convert,
int branch,
int size)
load - The byte code that loads a value onto the stack from the local variable array.store - The byte code that stores a value to the local variable array.convert - An instruction to convert the cached value to a value that is applied on the branch instruction.branch - A jump instruction that checks if the cached value is already set.size - The size of the created type on the operand stack.public ByteCodeAppender.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod)
apply in interface ByteCodeAppendermethodVisitor - The method visitor to which the byte code appender writes its code to.implementationContext - The implementation context of the current type creation process.instrumentedMethod - The method that is the target of the instrumentation.Copyright © 2014–2025. All rights reserved.