Package org.aspectj.weaver.reflect

Examples of org.aspectj.weaver.reflect.ShadowMatchImpl.alwaysMatches()


    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;
  }

  public ShadowMatch matchesAdviceExecution(Method aMethod) {
View Full Code Here


    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;
  }

  public ShadowMatch matchesInitialization(Constructor aConstructor) {
View Full Code Here

    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;
  }

  public ShadowMatch matchesPreInitialization(Constructor aConstructor) {
View Full Code Here

    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;
  }

  public ShadowMatch matchesMethodCall(Method aMethod, Member withinCode) {
View Full Code Here

    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;
  }

  public ShadowMatch matchesMethodCall(Method aMethod, Class callerType) {
View Full Code Here

    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;
  }

  public ShadowMatch matchesConstructorCall(Constructor aConstructor, Class callerType) {
View Full Code Here

    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;
  }

  public ShadowMatch matchesConstructorCall(Constructor aConstructor, Member withinCode) {
View Full Code Here

    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;
  }

  public ShadowMatch matchesHandler(Class exceptionType, Class handlingType) {
View Full Code Here

    sm.setSubject(null);
    sm.setWithinCode(null);
    sm.setWithinType(handlingType);
    if (MATCH_INFO && sm.maybeMatches()) {
      System.out.println("MATCHINFO: handler match on '" + exceptionType.getName() + "' handlingType='" + handlingType
          + "' for '" + this.expression + "': " + (sm.alwaysMatches() ? "YES" : "MAYBE"));
    }
    return sm;
  }

  public ShadowMatch matchesHandler(Class exceptionType, Member withinCode) {
View Full Code Here

    sm.setSubject(null);
    sm.setWithinCode(withinCode);
    sm.setWithinType(withinCode.getDeclaringClass());
    if (MATCH_INFO && sm.maybeMatches()) {
      System.out.println("MATCHINFO: handler match on '" + exceptionType.getName() + "' withinCode='" + withinCode
          + "' for '" + this.expression + "': " + (sm.alwaysMatches() ? "YES" : "MAYBE"));
    }
    return sm;
  }

  public ShadowMatch matchesFieldGet(Field aField, Class withinType) {
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.