2 Replies Latest reply on Dec 15, 2004 11:20 AM by Shigeru Chiba

    Behavioral reflection: hooks for conditions

    bialek Newbie

      Hello,
      I was looking for a way to hook conditional expressions such as
      if(cond1 && cond2) ...
      for(int i=0; i<20;i++) ...
      and modify them to e.g.
      if(NEWCOND && cond1 && cond2) ...
      for(int i=0; NEWCOND || i<20;i++) ...

      but couldn't find hooks for conditions in Javassist. Is it possible to perform such transformations?
      If not - will it be included in the future? Or, does any of you know other projects that support it?
      Cheers,
      ++Robert