public static class Advice.Dispatcher.OffsetMapping.Target.ForSerializedObject extends Object implements Advice.Dispatcher.OffsetMapping.Target
Advice.Dispatcher.OffsetMapping.Target.ForBoxedArgument, Advice.Dispatcher.OffsetMapping.Target.ForBoxedArguments, Advice.Dispatcher.OffsetMapping.Target.ForBoxedDefaultValue, Advice.Dispatcher.OffsetMapping.Target.ForConstantPoolValue, Advice.Dispatcher.OffsetMapping.Target.ForDefaultValue, Advice.Dispatcher.OffsetMapping.Target.ForExecutable, Advice.Dispatcher.OffsetMapping.Target.ForField, Advice.Dispatcher.OffsetMapping.Target.ForNullConstant, Advice.Dispatcher.OffsetMapping.Target.ForParameter, Advice.Dispatcher.OffsetMapping.Target.ForSerializedObject, Advice.Dispatcher.OffsetMapping.Target.ForType, Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcherNO_PADDING| Modifier | Constructor and Description |
|---|---|
protected |
ForSerializedObject(TypeDescription target,
String serialized)
Creates a target for an offset mapping that references a serialized value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
protected static Advice.Dispatcher.OffsetMapping.Target |
of(TypeDescription target,
Serializable value)
Resolves a serializable value to a target that reads a value from reconstructing a serializable string representation.
|
int |
resolveAccess(MethodVisitor methodVisitor,
int opcode)
Applies this offset mapping for a
MethodVisitor.visitVarInsn(int, int) instruction. |
int |
resolveIncrement(MethodVisitor methodVisitor,
int increment)
Applies this offset mapping for a
MethodVisitor.visitIincInsn(int, int) instruction. |
String |
toString() |
protected ForSerializedObject(TypeDescription target, String serialized)
target - The target type.serialized - The serialized form of the supplied form encoded as a string to be stored in the constant pool.protected static Advice.Dispatcher.OffsetMapping.Target of(TypeDescription target, Serializable value)
target - The target type of the serializable value.value - The value that the mapped field should represent.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.public int resolveIncrement(MethodVisitor methodVisitor, int increment)
Advice.Dispatcher.OffsetMapping.TargetMethodVisitor.visitIincInsn(int, int) instruction.resolveIncrement in interface Advice.Dispatcher.OffsetMapping.TargetmethodVisitor - The method visitor onto which this offset mapping is to be applied.increment - The value with which to increment the targeted value.Copyright © 2014–2016. All rights reserved.