Examples of alwaysMatches()


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

    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

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

    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

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

    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

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

    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

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

    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

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

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

  public ShadowMatch matchesFieldGet(Field aField, Member withinCode) {
View Full Code Here

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

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

  public ShadowMatch matchesFieldSet(Field aField, Class withinType) {
View Full Code Here

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

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

  public ShadowMatch matchesFieldSet(Field aField, Member withinCode) {
View Full Code Here

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

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

  private ShadowMatchImpl getShadowMatch(Shadow forShadow) {
View Full Code Here

Examples of org.aspectj.weaver.tools.ShadowMatch.alwaysMatches()

  @Override
  public boolean matches(Method method, Class targetClass) {
    checkReadyToMatch();
    ShadowMatch shadowMatch = pointcutExpression.matchesMethodExecution(method);
    if (shadowMatch.alwaysMatches()) {
      return true;
    } else if (shadowMatch.neverMatches()) {
      return false;
    }
    // TODO:其他情况不判断了!见org.springframework.aop.aspectj.RuntimeTestWalker
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.