Class Advice.OffsetMapping.ForArgument.Unresolved

    • Field Detail

      • index

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

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

      • Unresolved

        protected Unresolved​(TypeDescription.Generic target,
                             Advice.Argument argument)
        Creates a new offset binding for a parameter with a given index.
        Parameters:
        target - The target type.
        argument - 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.