Class Advice.AssignReturned.ToThis.Handler

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean exit
      true if this handler is applied on exit advice.
      private int index
      The index in the array that is returned which represents the assigned value or a negative value if assigning a scalar value.
      private Assigner.Typing typing
      The typing to apply when assigning the returned value to the targeted value.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Handler​(int index, Assigner.Typing typing, boolean exit)
      A handler for assigning the this reference.
    • Field Detail

      • 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.
      • exit

        private final boolean exit
        true if this handler is applied on exit advice.
    • Constructor Detail

      • Handler

        protected Handler​(int index,
                          Assigner.Typing typing,
                          boolean exit)
        A handler for assigning the this reference.
        Parameters:
        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.
        exit - true if this handler is applied on exit advice.
    • 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.