Class Advice.OffsetMapping.ForArgument.Resolved.Factory<T extends Annotation>

java.lang.Object
net.bytebuddy.asm.Advice.OffsetMapping.ForArgument.Resolved.Factory<T>
Type Parameters:
T - The type of the bound annotation.
All Implemented Interfaces:
Advice.OffsetMapping.Factory<T>
Enclosing class:
Advice.OffsetMapping.ForArgument.Resolved

@Enhance public static class Advice.OffsetMapping.ForArgument.Resolved.Factory<T extends Annotation> extends Object implements Advice.OffsetMapping.Factory<T>
A factory for a parameter argument of the instrumented method.
  • Field Details

    • annotationType

      private final Class<T extends Annotation> annotationType
      The annotation type.
    • parameterDescription

      private final ParameterDescription parameterDescription
      The bound parameter.
    • readOnly

      private final boolean readOnly
      true if the factory should create a read-only binding.
    • typing

      private final Assigner.Typing typing
      The typing to use.
  • Constructor Details

    • Factory

      public Factory(Class<T> annotationType, ParameterDescription parameterDescription)
      Creates a new factory for binding a parameter of the instrumented method with read-only semantics and static typing.
      Parameters:
      annotationType - The annotation type.
      parameterDescription - The bound parameter.
    • Factory

      public Factory(Class<T> annotationType, ParameterDescription parameterDescription, boolean readOnly, Assigner.Typing typing)
      Creates a new factory for binding a parameter of the instrumented method.
      Parameters:
      annotationType - The annotation type.
      parameterDescription - The bound parameter.
      readOnly - true if the factory should create a read-only binding.
      typing - The typing to use.
  • Method Details