@HashCodeAndEqualsPlugin.Enhance private class FixedValue.ForValue.StaticFieldByteCodeAppender extends java.lang.Object implements ByteCodeAppender
ByteCodeAppender.Compound, ByteCodeAppender.Simple, ByteCodeAppender.Size| Modifier and Type | Field and Description |
|---|---|
private StackManipulation |
fieldGetAccess
The stack manipulation that loads the fixed value onto the operand stack.
|
| Modifier | Constructor and Description |
|---|---|
private |
StaticFieldByteCodeAppender(TypeDescription instrumentedType)
Creates a new byte code appender for returning a value of a static field from an instrumented method.
|
| 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 StackManipulation fieldGetAccess
private StaticFieldByteCodeAppender(TypeDescription instrumentedType)
instrumentedType - The instrumented type that is subject of the instrumentation.public ByteCodeAppender.Size apply(org.objectweb.asm.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.