• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Arguments and return type from org.aspectj.lang.Signature, or org.aspectj.lang.ProceedingJoinPoint

 
Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to find the return type of the method from org.aspectj.lang.Signature and org.aspectj.lang.ProceedingJoinPoint classes.

My code is like:



Form sig.toLongString() , I can get the entire thing.
From sig.getName(), I get the name of the method, which is getIt.
myTargetClass returns the name of the class, which is org.Service.MyClass.

pjp.getArgs() will return values of the arguments in an array which is good.

There is no API available to get the return type, which is java.util.List


I can use poor man's solution and parse the String obtained from sig.toLongString() to get the return type.

But I am wondering if there is any clean API available to get the return type (java.uti.List), instead of parsing sig.toLongString().


 
Everybody's invited. Even this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!