@HashCodeAndEqualsPlugin.Enhance public abstract static class Advice.OffsetMapping.Target.ForVariable extends Object implements Advice.OffsetMapping.Target
Modifier and Type | Class and Description |
---|---|
static class |
Advice.OffsetMapping.Target.ForVariable.ReadOnly
A target for a read-only mapping of a local variable.
|
static class |
Advice.OffsetMapping.Target.ForVariable.ReadWrite
A target for a writable mapping of a local variable.
|
Advice.OffsetMapping.Target.AbstractReadOnlyAdapter, Advice.OffsetMapping.Target.ForArray, Advice.OffsetMapping.Target.ForDefaultValue, Advice.OffsetMapping.Target.ForField, Advice.OffsetMapping.Target.ForStackManipulation, Advice.OffsetMapping.Target.ForVariable
Modifier and Type | Field and Description |
---|---|
protected int |
offset
The value's offset.
|
protected StackManipulation |
readAssignment
An assignment to execute upon reading a value.
|
protected TypeDefinition |
typeDefinition
The represented type.
|
Modifier | Constructor and Description |
---|---|
protected |
ForVariable(TypeDefinition typeDefinition,
int offset,
StackManipulation readAssignment)
Creates a new target for a local variable mapping.
|
Modifier and Type | Method and Description |
---|---|
StackManipulation |
resolveRead()
Resolves a read instruction.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolveIncrement, resolveWrite
protected final TypeDefinition typeDefinition
protected final int offset
protected final StackManipulation readAssignment
protected ForVariable(TypeDefinition typeDefinition, int offset, StackManipulation readAssignment)
typeDefinition
- The represented type.offset
- The value's offset.readAssignment
- An assignment to execute upon reading a value.public StackManipulation resolveRead()
resolveRead
in interface Advice.OffsetMapping.Target
Copyright © 2014–2025. All rights reserved.