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.

DeferredResolvedPointcutDefinition.java 1.5KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* *******************************************************************
  2. * Copyright (c) 2006 Contributors.
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://eclipse.org/legal/epl-v10.html
  8. *
  9. * Contributors:
  10. * Adrian Colyer Initial implementation
  11. * ******************************************************************/
  12. package org.aspectj.weaver.reflect;
  13. import org.aspectj.weaver.ResolvedPointcutDefinition;
  14. import org.aspectj.weaver.UnresolvedType;
  15. /**
  16. * When a Java15ReflectionBasedDelegate gets the pointcuts for a given class it tries to resolve them before returning. This can
  17. * cause problems if the resolution of one pointcut in the type depends on another pointcut in the same type. Therefore the
  18. * algorithm proceeds in two phases, first we create and store instances of this class in the pointcuts array, and once that is
  19. * done, we come back round and resolve the actual pointcut expression. This means that if we recurse doing resolution, we will find
  20. * the named pointcut we are looking for!
  21. *
  22. * @author adrian colyer
  23. *
  24. */
  25. public class DeferredResolvedPointcutDefinition extends ResolvedPointcutDefinition {
  26. public DeferredResolvedPointcutDefinition(UnresolvedType declaringType, int modifiers, String name,
  27. UnresolvedType[] parameterTypes) {
  28. super(declaringType, modifiers, name, parameterTypes, UnresolvedType.VOID, null);
  29. }
  30. }