Class Advice.AssignReturned.ToArguments.Handler

    • Field Detail

      • value

        private final int value
        The index of the assigned argument.
      • index

        private final int index
        The index in the array that is returned which represents the assigned value or a negative value if assigning a scalar value.
      • typing

        private final Assigner.Typing typing
        The typing to apply when assigning the returned value to the targeted value.
    • Constructor Detail

      • Handler

        protected Handler​(int value,
                          int index,
                          Assigner.Typing typing)
        Creates a new handler.
        Parameters:
        value - The index of the assigned argument.
        index - The index in the array that is returned which represents the assigned value or a negative value if assigning a scalar value.
        typing - The typing to apply when assigning the returned value to the targeted value.
    • Method Detail

      • getIndex

        public int getIndex()
        Returns the array offset which this handler intends to assign or a negative value if this handler intends to assign a scalar value.
        Specified by:
        getIndex in interface Advice.AssignReturned.Handler
        Returns:
        The array offset which this handler intends to assign or a negative value if this handler intends to assign a scalar value.