title: Getting the java.lang.reflect.Method from a ProceedingJoinPoint?
body: <p>The question is short and simple: Is there a way to get the Method object from an apsectj  ProceedingJoinPoint?</p>
  
  <p>Currently I am doing </p>
  
  <pre><code>Class[] parameterTypes = new Class[joinPoint.getArgs().length];
  Object[] args = joinPoint.getArgs();
  for(int i=0; i&lt;args.length; i++) {
      if(args[i] != null) {
          parameterTypes[i] = args[i].getClass();
      }
      else {
          parameterTypes[i] = null;
      }
  }
  
  String methodName = joinPoint.getSignature().getName();
  Method method = joinPoint.getSignature()
      .getDeclaringType().getMethod(methodName, parameterTypes);
  </code></pre>
  
  <p>but I don't think this is the way to go ... </p>