Class Advice.OffsetMapping.Target.ForVariable
java.lang.Object
net.bytebuddy.asm.Advice.OffsetMapping.Target.ForVariable
- All Implemented Interfaces:
Advice.OffsetMapping.Target
- Direct Known Subclasses:
Advice.OffsetMapping.Target.ForVariable.ReadOnly, Advice.OffsetMapping.Target.ForVariable.ReadWrite
- Enclosing interface:
Advice.OffsetMapping.Target
@Enhance
public abstract static class Advice.OffsetMapping.Target.ForVariable
extends Object
implements Advice.OffsetMapping.Target
A target for an offset mapping that represents a local variable.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA target for a read-only mapping of a local variable.static classA target for a writable mapping of a local variable.Nested classes/interfaces inherited from interface Advice.OffsetMapping.Target
Advice.OffsetMapping.Target.AbstractReadOnlyAdapter, Advice.OffsetMapping.Target.ForArray, Advice.OffsetMapping.Target.ForDefaultValue, Advice.OffsetMapping.Target.ForField, Advice.OffsetMapping.Target.ForStackManipulation, Advice.OffsetMapping.Target.ForVariable -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intThe value's offset.protected final StackManipulationAn assignment to execute upon reading a value.protected final TypeDefinitionThe represented type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForVariable(TypeDefinition typeDefinition, int offset, StackManipulation readAssignment) Creates a new target for a local variable mapping. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Advice.OffsetMapping.Target
resolveIncrement, resolveWrite
-
Field Details
-
typeDefinition
The represented type. -
offset
protected final int offsetThe value's offset. -
readAssignment
An assignment to execute upon reading a value.
-
-
Constructor Details
-
ForVariable
Creates a new target for a local variable mapping.- Parameters:
typeDefinition- The represented type.offset- The value's offset.readAssignment- An assignment to execute upon reading a value.
-
-
Method Details
-
resolveRead
Resolves a read instruction.- Specified by:
resolveReadin interfaceAdvice.OffsetMapping.Target- Returns:
- A stack manipulation that represents a reading of an advice parameter.
-