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.
  • Field Details

    • typeDefinition

      protected final TypeDefinition typeDefinition
      The represented type.
    • offset

      protected final int offset
      The value's offset.
    • readAssignment

      protected final StackManipulation readAssignment
      An assignment to execute upon reading a value.
  • Constructor Details

    • ForVariable

      protected ForVariable(TypeDefinition typeDefinition, int offset, StackManipulation readAssignment)
      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