You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MethodInvocationClosure.java 1.0KB

123456789101112131415161718192021222324252627282930313233
  1. /*******************************************************************************
  2. * Copyright (c) 2004 IBM Corporation and others.
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Common Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * http://www.eclipse.org/legal/cpl-v10.html
  7. *
  8. * Contributors:
  9. * IBM Corporation - initial API and implementation
  10. *******************************************************************************/
  11. package org.aspectj.aopalliance;
  12. import java.lang.reflect.Method;
  13. import org.aopalliance.intercept.MethodInvocation;
  14. import org.aspectj.lang.JoinPoint;
  15. public abstract class MethodInvocationClosure extends InvocationJoinPointClosure
  16. implements
  17. MethodInvocation {
  18. public MethodInvocationClosure(JoinPoint jp) {
  19. super(jp);
  20. }
  21. /* (non-Javadoc)
  22. * @see org.aopalliance.intercept.MethodInvocation#getMethod()
  23. */
  24. public Method getMethod() {
  25. return (Method) getStaticPart();
  26. }
  27. }