public abstract static class Advice.Dispatcher.OffsetMapping.Target.ForField extends Object implements Advice.Dispatcher.OffsetMapping.Target
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Advice.Dispatcher.OffsetMapping.Target.ForField.ReadOnly
A target mapping for a field that is only readable.
|
protected static class |
Advice.Dispatcher.OffsetMapping.Target.ForField.ReadWrite
A target mapping for a field that is both readable and writable.
|
Advice.Dispatcher.OffsetMapping.Target.ForBoxedArguments, Advice.Dispatcher.OffsetMapping.Target.ForBoxedParameter, Advice.Dispatcher.OffsetMapping.Target.ForConstantPoolValue, Advice.Dispatcher.OffsetMapping.Target.ForDefaultValue, Advice.Dispatcher.OffsetMapping.Target.ForField, Advice.Dispatcher.OffsetMapping.Target.ForNullConstant, Advice.Dispatcher.OffsetMapping.Target.ForParameter, Advice.Dispatcher.OffsetMapping.Target.ForSerializedObject| Modifier and Type | Field and Description |
|---|---|
protected FieldDescription.InDefinedShape |
fieldDescription
The field being read.
|
NO_PADDING| Modifier | Constructor and Description |
|---|---|
protected |
ForField(FieldDescription.InDefinedShape fieldDescription)
Creates a new offset mapping for a field.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
accessField(MethodVisitor methodVisitor,
int opcode)
Accesses a field.
|
boolean |
equals(Object object) |
int |
hashCode() |
protected abstract int |
onWriteDouble(MethodVisitor methodVisitor)
Writes a value to a field which type occupies two slots on the operand stack.
|
protected abstract int |
onWriteSingle(MethodVisitor methodVisitor)
Writes a value to a field which type occupies a single slot on the operand stack.
|
int |
resolveAccess(MethodVisitor methodVisitor,
int opcode)
Applies this offset mapping for a
MethodVisitor.visitVarInsn(int, int) instruction. |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitresolveIncrementprotected final FieldDescription.InDefinedShape fieldDescription
protected ForField(FieldDescription.InDefinedShape fieldDescription)
fieldDescription - The field being read.public int resolveAccess(MethodVisitor methodVisitor, int opcode)
Advice.Dispatcher.OffsetMapping.TargetMethodVisitor.visitVarInsn(int, int) instruction.resolveAccess in interface Advice.Dispatcher.OffsetMapping.TargetmethodVisitor - The method visitor onto which this offset mapping is to be applied.opcode - The opcode of the original instruction.protected abstract int onWriteSingle(MethodVisitor methodVisitor)
methodVisitor - The method visitor onto which this offset mapping is to be applied.protected abstract int onWriteDouble(MethodVisitor methodVisitor)
methodVisitor - The method visitor onto which this offset mapping is to be applied.protected void accessField(MethodVisitor methodVisitor, int opcode)
methodVisitor - The method visitor for which to access the field.opcode - The opcode for accessing the field.Copyright © 2014–2016. All rights reserved.