@HashCodeAndEqualsPlugin.Enhance protected static class Advice.Appender extends java.lang.Object implements ByteCodeAppender
Advice
.Modifier and Type | Class and Description |
---|---|
protected static class |
Advice.Appender.EmulatingMethodVisitor
A method visitor that allows for the emulation of a full method visitor invocation circle without delegating initial
and ending visitations to the underlying visitor.
|
ByteCodeAppender.Compound, ByteCodeAppender.Simple, ByteCodeAppender.Size
Modifier and Type | Field and Description |
---|---|
private Advice |
advice
The advice to implement.
|
private ByteCodeAppender |
delegate
The delegate byte code appender.
|
private Implementation.Target |
implementationTarget
The current implementation target.
|
Modifier | Constructor and Description |
---|---|
protected |
Appender(Advice advice,
Implementation.Target implementationTarget,
ByteCodeAppender delegate)
Creates a new appender for an advice component.
|
Modifier and Type | Method and Description |
---|---|
ByteCodeAppender.Size |
apply(org.objectweb.asm.MethodVisitor methodVisitor,
Implementation.Context implementationContext,
MethodDescription instrumentedMethod)
Applies this byte code appender to a type creation process.
|
private final Advice advice
private final Implementation.Target implementationTarget
private final ByteCodeAppender delegate
protected Appender(Advice advice, Implementation.Target implementationTarget, ByteCodeAppender delegate)
advice
- The advice to implement.implementationTarget
- The current implementation target.delegate
- The delegate byte code appender.public ByteCodeAppender.Size apply(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod)
apply
in interface ByteCodeAppender
methodVisitor
- 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.