@HashCodeAndEqualsPlugin.Enhance protected static class Advice.Appender extends 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 | 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(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
MethodDescription instrumentedMethod)
Applies this byte code appender to a type creation process.
|
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(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.Copyright © 2014–2020. All rights reserved.