Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Java class with inner methods
Java class with inner methods [message #436795] Mon, 24 May 2004 14:47
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:How to open an Application Window correctly?
Next Topic:inner class query
Goto Forum:
  


Current Time: Thu Apr 25 19:54:26 GMT 2024

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

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

Back to the top