Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java class methos with inner methods in it
Java class methos with inner methods in it [message #160389] Mon, 24 May 2004 14:44
Eclipse UserFriend
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
Previous Topic:Cheetah installation problem: complains about requiring feature "org.eclipse.jdt (3.0.0)"
Next Topic:M9 lost my editor configuration settings
Goto Forum:
  


Current Time: Thu Dec 26 18:19:24 GMT 2024

Powered by FUDForum. Page generated in 0.03535 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top