Examples of ShadowMatchImpl


Examples of org.aspectj.weaver.reflect.ShadowMatchImpl

  private final Test runtimeTest;


  public RuntimeTestWalker(ShadowMatch shadowMatch) {
    ShadowMatchImpl shadowMatchImplementation = (ShadowMatchImpl) shadowMatch;
    try {
      Field testField = shadowMatchImplementation.getClass().getDeclaredField("residualTest");
      ReflectionUtils.makeAccessible(testField);
      this.runtimeTest = (Test) testField.get(shadowMatch);
    }
    catch (NoSuchFieldException noSuchFieldEx) {
      throw new IllegalStateException("The version of aspectjtools.jar / aspectjweaver.jar " +
View Full Code Here

Examples of org.aspectj.weaver.reflect.ShadowMatchImpl

    return match;
  }

  private ShadowMatch matchesExecution(Member aMember) {
    Shadow s = ReflectionShadow.makeExecutionShadow(world, aMember, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aMember);
    sm.setWithinCode(null);
    sm.setWithinType(aMember.getDeclaringClass());
    return sm;
  }
View Full Code Here

Examples of org.aspectj.weaver.reflect.ShadowMatchImpl

    return sm;
  }

  public ShadowMatch matchesStaticInitialization(Class aClass) {
    Shadow s = ReflectionShadow.makeStaticInitializationShadow(world, aClass, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(null);
    sm.setWithinCode(null);
    sm.setWithinType(aClass);
    if (MATCH_INFO && sm.maybeMatches()) {
      System.out.println("MATCHINFO: static initialization match on '" + aClass.getName() + "' for '" + this.expression
          + "': " + (sm.alwaysMatches() ? "YES" : "MAYBE"));
    }
    return sm;
  }
View Full Code Here

Examples of org.aspectj.weaver.reflect.ShadowMatchImpl

    return sm;
  }

  public ShadowMatch matchesAdviceExecution(Method aMethod) {
    Shadow s = ReflectionShadow.makeAdviceExecutionShadow(world, aMethod, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aMethod);
    sm.setWithinCode(null);
    sm.setWithinType(aMethod.getDeclaringClass());
    if (MATCH_INFO && sm.maybeMatches()) {
      System.out.println("MATCHINFO: advice execution match on '" + aMethod + "' for '" + this.expression + "': "
          + (sm.alwaysMatches() ? "YES" : "MAYBE"));
    }
    return sm;
  }
View Full Code Here

Examples of org.aspectj.weaver.reflect.ShadowMatchImpl

    return sm;
  }

  public ShadowMatch matchesInitialization(Constructor aConstructor) {
    Shadow s = ReflectionShadow.makeInitializationShadow(world, aConstructor, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aConstructor);
    sm.setWithinCode(null);
    sm.setWithinType(aConstructor.getDeclaringClass());
    if (MATCH_INFO && sm.maybeMatches()) {
      System.out.println("MATCHINFO: initialization match on '" + aConstructor + "' for '" + this.expression + "': "
          + (sm.alwaysMatches() ? "YES" : "MAYBE"));
    }
    return sm;
  }
View Full Code Here

Examples of org.aspectj.weaver.reflect.ShadowMatchImpl

    return sm;
  }

  public ShadowMatch matchesPreInitialization(Constructor aConstructor) {
    Shadow s = ReflectionShadow.makePreInitializationShadow(world, aConstructor, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aConstructor);
    sm.setWithinCode(null);
    sm.setWithinType(aConstructor.getDeclaringClass());
    if (MATCH_INFO && sm.maybeMatches()) {
      System.out.println("MATCHINFO: preinitialization match on '" + aConstructor + "' for '" + this.expression + "': "
          + (sm.alwaysMatches() ? "YES" : "MAYBE"));
    }
    return sm;
  }
View Full Code Here

Examples of org.aspectj.weaver.reflect.ShadowMatchImpl

    return sm;
  }

  public ShadowMatch matchesMethodCall(Method aMethod, Member withinCode) {
    Shadow s = ReflectionShadow.makeCallShadow(world, aMethod, withinCode, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aMethod);
    sm.setWithinCode(withinCode);
    sm.setWithinType(withinCode.getDeclaringClass());
    if (MATCH_INFO && sm.maybeMatches()) {
      System.out.println("MATCHINFO: method call match on '" + aMethod + "' withinCode='" + withinCode + "' for '"
          + this.expression + "': " + (sm.alwaysMatches() ? "YES" : "MAYBE"));
    }
    return sm;
  }
View Full Code Here

Examples of org.aspectj.weaver.reflect.ShadowMatchImpl

    return sm;
  }

  public ShadowMatch matchesMethodCall(Method aMethod, Class callerType) {
    Shadow s = ReflectionShadow.makeCallShadow(world, aMethod, callerType, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aMethod);
    sm.setWithinCode(null);
    sm.setWithinType(callerType);
    if (MATCH_INFO && sm.maybeMatches()) {
      System.out.println("MATCHINFO: method call match on '" + aMethod + "' callerType='" + callerType.getName() + "' for '"
          + this.expression + "': " + (sm.alwaysMatches() ? "YES" : "MAYBE"));
    }
    return sm;
  }
View Full Code Here

Examples of org.aspectj.weaver.reflect.ShadowMatchImpl

    return sm;
  }

  public ShadowMatch matchesConstructorCall(Constructor aConstructor, Class callerType) {
    Shadow s = ReflectionShadow.makeCallShadow(world, aConstructor, callerType, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aConstructor);
    sm.setWithinCode(null);
    sm.setWithinType(callerType);
    if (MATCH_INFO && sm.maybeMatches()) {
      System.out.println("MATCHINFO: constructor call match on '" + aConstructor + "' callerType='" + callerType.getName()
          + "' for '" + this.expression + "': " + (sm.alwaysMatches() ? "YES" : "MAYBE"));
    }
    return sm;
  }
View Full Code Here

Examples of org.aspectj.weaver.reflect.ShadowMatchImpl

    return sm;
  }

  public ShadowMatch matchesConstructorCall(Constructor aConstructor, Member withinCode) {
    Shadow s = ReflectionShadow.makeCallShadow(world, aConstructor, withinCode, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aConstructor);
    sm.setWithinCode(withinCode);
    sm.setWithinType(withinCode.getDeclaringClass());
    if (MATCH_INFO && sm.maybeMatches()) {
      System.out.println("MATCHINFO: constructor call match on '" + aConstructor + "' withinCode='" + withinCode + "' for '"
          + this.expression + "': " + (sm.alwaysMatches() ? "YES" : "MAYBE"));
    }
    return sm;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.