Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Inner Class Query
Inner Class Query [message #579996] Tue, 25 May 2004 08:09
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

Thanks

akash
Previous Topic:Inner Class Query
Next Topic:AJDT 1.1.10 available (runs on Eclipse 3.0M9)
Goto Forum:
  


Current Time: Tue Mar 19 08:24:35 GMT 2024

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

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

Back to the top