Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments

java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments
All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
Enclosing interface:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping

@Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments extends Object implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
An offset mapping that assigns an array containing all arguments to the annotated parameter.
  • Field Details

    • targetComponentType

      private final TypeDescription.Generic targetComponentType
      The component type of the annotated parameter.
    • typing

      The typing to use or null if implicit typing.
    • source

      private final MemberSubstitution.Source source
      The source providing the reference.
    • includeSelf

      private final boolean includeSelf
      true if the this reference should be included in the created array, if available.
    • nullIfEmpty

      private final boolean nullIfEmpty
      true if null should be assigned to the parameter if no arguments are available.
  • Constructor Details

    • ForAllArguments

      public ForAllArguments(TypeDescription.Generic targetComponentType, @MaybeNull Assigner.Typing typing, MemberSubstitution.Source source, boolean includeSelf, boolean nullIfEmpty)
      Creates a new offset mapping for an array containing all supplied arguments.
      Parameters:
      targetComponentType - The component type of the annotated parameter.
      typing - The typing to use or null if implicit typing.
      source - The source providing the reference.
      includeSelf - true if the this reference should be included in the created array, if available.
      nullIfEmpty - true if null should be assigned to the parameter if no arguments are available.
  • Method Details