In a simple class like this :

public class Test1 {
       static int res;

    public static void main(String[] args) {
foo(2);
    }
    
    public static int foo(int num) {
          res = num + 2;
          return res;
    }
}       

How can i access the value of the parameter in red in the method call 'foo(x)' 
(here this value is 2) ? I can replace this statement and his parameter "$1" 
using MethodCall.replace(...) but i don't succeed to get the value of this "$1" 
parameter. How can I do this ?

Thank you very much !


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881912#3881912

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881912


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to