Class Advice.OffsetMapping.ForArgument.Unresolved

java.lang.Object
net.bytebuddy.asm.Advice.OffsetMapping.ForArgument
net.bytebuddy.asm.Advice.OffsetMapping.ForArgument.Unresolved
All Implemented Interfaces:
Advice.OffsetMapping
Enclosing class:
Advice.OffsetMapping.ForArgument

@Enhance public static class Advice.OffsetMapping.ForArgument.Unresolved extends Advice.OffsetMapping.ForArgument
An offset mapping for a parameter of the instrumented method with a specific index.
  • Field Details

    • index

      private final int index
      The index of the parameter.
    • optional

      private final boolean optional
      true if the parameter binding is optional.
  • Constructor Details

    • Unresolved

      protected Unresolved(TypeDescription.Generic target, AnnotationDescription.Loadable<Advice.Argument> annotation)
      Creates a new offset binding for a parameter with a given index.
      Parameters:
      target - The target type.
      annotation - The annotation that triggers this binding.
    • Unresolved

      protected Unresolved(ParameterDescription parameterDescription)
      Creates a new offset binding for a parameter with a given index.
      Parameters:
      parameterDescription - The parameter triggering this binding.
    • Unresolved

      public Unresolved(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing, int index)
      Creates a non-optional offset binding for a parameter with a given index.
      Parameters:
      target - The type expected by the advice method.
      readOnly - Determines if the parameter is to be treated as read-only.
      typing - The typing to apply.
      index - The index of the parameter.
    • Unresolved

      public Unresolved(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing, int index, boolean optional)
      Creates a new offset binding for a parameter with a given index.
      Parameters:
      target - The type expected by the advice method.
      readOnly - Determines if the parameter is to be treated as read-only.
      typing - The typing to apply.
      index - The index of the parameter.
      optional - true if the parameter binding is optional.
  • Method Details