5 Replies Latest reply on Sep 23, 2004 1:18 PM by Kabir Khan

    Arguments of method that called some other method.

    Tomasz Nazar Newbie

      Hi.

      Is there any way to get underlined arguments:

      public void method(Object _arg1_, String _arg2_)
      {
       collection.add(arg2); <- join point "call(* $instanceof{java.util.Collection}>add(..))"
      
      }


      public Object advice(MethodCalledByMethodInvocation invocation)
      {
       invocation.getArguments()[0] == arg2;
       invocation.getTargetObject() == collection;
       invocation.getCallingMethod() == method;
      
       ??? = _arg1_;
      }


      Thanks..
      Tomasz