4 Replies Latest reply on Feb 26, 2011 7:29 AM by Rui Pereira

    Intercept an method call within a specific statement

    Rui Pereira Newbie

      Hi

       

      There is some way of intercept an method call within a specific statement?
      For instance:

       

      String s=getPerson().getAddress().getStreet();

       

      The purpose is to intercept the two method calls, getAddress() and getStreet(), just because they were invoked from an method named getPerson().

       

      Thanks,
      Rui