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.

ReflectionFastMatchInfo.java 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 v 2.0
  6. * which accompanies this distribution and is available at
  7. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  8. *
  9. * Contributors:
  10. * Adrian Colyer Initial implementation
  11. * ******************************************************************/
  12. package org.aspectj.weaver.reflect;
  13. import org.aspectj.weaver.ResolvedType;
  14. import org.aspectj.weaver.Shadow;
  15. import org.aspectj.weaver.World;
  16. import org.aspectj.weaver.patterns.FastMatchInfo;
  17. import org.aspectj.weaver.tools.MatchingContext;
  18. /**
  19. * An implementation of FastMatchInfo that can also expose a MatchingContext.
  20. *
  21. * @author Adrian Colyer
  22. * @since 1.5.1
  23. */
  24. public class ReflectionFastMatchInfo extends FastMatchInfo {
  25. private final MatchingContext context;
  26. public ReflectionFastMatchInfo(ResolvedType type, Shadow.Kind kind, MatchingContext context, World world) {
  27. super(type, kind, world);
  28. this.context = context;
  29. }
  30. /**
  31. * @return Returns the matching context.
  32. */
  33. public MatchingContext getMatchingContext() {
  34. return this.context;
  35. }
  36. }