Java class methos with inner methods in it [message #160389] |
Mon, 24 May 2004 14:44 |
Eclipse User |
|
|
|
Originally posted by: akash.gunjal.jobpartners.com
Hi
Following the class i like to ask abt
Public class TestClass {
public void getNameByCompanyId(Object ob) {
String name = this.findNameByComapanyId(ob);
}
public String findNameByComapanyId(Object ob) {
.....this will return Name
}
}
public aspect ObjectReplacement {
pointcut inTest() : execution(public void TestClass.*());
}
As you see in my Java class in side method getNameByCompanyId(Object ob) i
am calling aother method findNameByComapanyId(ob) which taking same object
as parameter as method getNameByCompanyId(Object ob).
I don't want to check any thing for the method findNameByComapanyId(Object
ob)
because it is just repetation because what ever check i want to do on that
object(Object ob) i will do as soon as i enter in method
"getNameByCompanyId(Object ob)"
but i want to declare findNameByComapanyId(Object o) as public rather than
private.
Any idea how to do it
|
|
|
Powered by
FUDForum. Page generated in 0.03535 seconds