Interface Advice.OffsetMapping.Factory<T extends Annotation>

Type Parameters:
T - The annotation type that triggers this factory.
All Known Implementing Classes:
Advice.OffsetMapping.Factory.Illegal, Advice.OffsetMapping.Factory.Simple, Advice.OffsetMapping.ForAllArguments.Factory, Advice.OffsetMapping.ForArgument.Resolved.Factory, Advice.OffsetMapping.ForArgument.Unresolved.Factory, Advice.OffsetMapping.ForEnterValue.Factory, Advice.OffsetMapping.ForExitValue.Factory, Advice.OffsetMapping.ForField.Resolved.Factory, Advice.OffsetMapping.ForField.Unresolved.Factory, Advice.OffsetMapping.ForFieldHandle.Resolved.Factory, Advice.OffsetMapping.ForFieldHandle.Unresolved.ReaderFactory, Advice.OffsetMapping.ForFieldHandle.Unresolved.WriterFactory, Advice.OffsetMapping.ForLocalValue.Factory, Advice.OffsetMapping.ForOrigin.Factory, Advice.OffsetMapping.ForReturnValue.Factory, Advice.OffsetMapping.ForSelfCallHandle.Factory, Advice.OffsetMapping.ForSerializedValue.Factory, Advice.OffsetMapping.ForStackManipulation.Factory, Advice.OffsetMapping.ForStackManipulation.OfAnnotationProperty, Advice.OffsetMapping.ForStackManipulation.OfDefaultValue, Advice.OffsetMapping.ForStackManipulation.OfDynamicInvocation, Advice.OffsetMapping.ForStubValue, Advice.OffsetMapping.ForThisReference.Factory, Advice.OffsetMapping.ForThrowable.Factory, Advice.OffsetMapping.ForUnusedValue.Factory
Enclosing interface:
Advice.OffsetMapping

public static interface Advice.OffsetMapping.Factory<T extends Annotation>
Represents a factory for creating a Advice.OffsetMapping for a given parameter for a given annotation.
  • Method Details

    • getAnnotationType

      Class<T> getAnnotationType()
      Returns the annotation type of this factory.
      Returns:
      The factory's annotation type.
    • make

      Creates a new offset mapping for the supplied parameter if possible.
      Parameters:
      target - The parameter description for which to resolve an offset mapping.
      annotation - The annotation that triggered this factory.
      adviceType - true if the binding is applied using advice method delegation.
      Returns:
      A resolved offset mapping or null if no mapping can be resolved for this parameter.