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

java.lang.Object
net.bytebuddy.asm.Advice.OffsetMapping.ForField.Resolved.Factory<T>
Type Parameters:
T - The annotation type this factory binds.
All Implemented Interfaces:
Advice.OffsetMapping.Factory<T>
Enclosing class:
Advice.OffsetMapping.ForField.Resolved

@Enhance public static class Advice.OffsetMapping.ForField.Resolved.Factory<T extends Annotation> extends Object implements Advice.OffsetMapping.Factory<T>
A factory that binds a field.
  • Field Details

    • annotationType

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

      private final FieldDescription fieldDescription
      The field to be bound.
    • readOnly

      private final boolean readOnly
      true if this 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, FieldDescription fieldDescription)
      Creates a new factory for binding a specific field with read-only semantics and static typing.
      Parameters:
      annotationType - The annotation type.
      fieldDescription - The field to bind.
    • Factory

      public Factory(Class<T> annotationType, FieldDescription fieldDescription, boolean readOnly, Assigner.Typing typing)
      Creates a new factory for binding a specific field.
      Parameters:
      annotationType - The annotation type.
      fieldDescription - The field to bind.
      readOnly - true if this factory should create a read-only binding.
      typing - The typing to use.
  • Method Details