I have Class , in which there are 50+ methods. Now I want to do some process to all the parameters in this 50+ methods when the method is called. One way to do is call your process method in each of the methods.
My Question is like, I have a class A
with methods
b c d and e
if c is called from somewhere ,
is there any way to get the parameter values before it reaches c.
Eg:
class A{
public void hello(String message){
// code
}
public void superMethod(Method method){
//this method is invoked before any method call in class A
//you can manipulate parameters and its values.
}
}
}
is there anything like the above given superMethod
?
I am sorry if this is a foolish Question.
Aucun commentaire:
Enregistrer un commentaire