Structural Search for all the (Object/Class) method parameters


Could you any one let us know syntax for Structural Search to final all the methods with parameters..

Also, once the parameters are found, we need to rename the parameters in case they don't start with variable prefix i.e 'a'


if the orginial method is some thing like this

public void setJournal(Journal journal)
this.journal = journal;

then through Structural Search and Replace we are looking to convert it to

public void setJournal(Journal aJournal)
this.journal = aJournal;

Raja Nagendra Kumar,
1 comment
Comment actions Permalink

I think Refactor -> Change signature can help you changing all calls to the method and you can check if that by consequence changes the property name in the class of the caller.
If you didn't try it yet, give it a go.




Please sign in to leave a comment.