Package org.aspectj.weaver

Examples of org.aspectj.weaver.ResolvableTypeList


    // OPTIMIZE both resolution of these types and their annotations should be deferred - just pass down a world and do it lower
    // down
    // ResolvedType[] resolvedParameters = world.resolve(aMethod.getParameterTypes());

    ResolvableTypeList rtl = new ResolvableTypeList(world, aMethod.getParameterTypes());
    // Only fetch the parameter annotations if the pointcut is going to be matching on them
    ResolvedType[][] parameterAnnotationTypes = null;
    if (isMatchingParameterAnnotations()) {
      parameterAnnotationTypes = aMethod.getParameterAnnotationTypes();
      if (parameterAnnotationTypes != null && parameterAnnotationTypes.length == 0) {
        parameterAnnotationTypes = null;
      }
    }

    if (!parameterTypes.matches(rtl, TypePattern.STATIC, parameterAnnotationTypes).alwaysTrue()) {
      // It could still be a match based on the generic sig parameter types of a parameterized type
      if (!parameterTypes.matches(new ResolvableTypeList(world, aMethod.getGenericParameterTypes()), TypePattern.STATIC,
          parameterAnnotationTypes).alwaysTrue()) {
        return FuzzyBoolean.MAYBE;
        // It could STILL be a match based on the erasure of the parameter types??
        // to be determined via test cases...
      }
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.ResolvableTypeList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.