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

Hi,

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'

e.g

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;
}



Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
0
1 comment

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.

Cheers.

Vitor.

0

Please sign in to leave a comment.