Package org.aspectj.weaver

Examples of org.aspectj.weaver.Shadow


    }
    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()) {
View Full Code Here


    }
    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()) {
View Full Code Here

    }
    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()) {
View Full Code Here

    }
    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()) {
View Full Code Here

    }
    return sm;
  }

  public ShadowMatch matchesHandler(Class exceptionType, Class handlingType) {
    Shadow s = ReflectionShadow.makeHandlerShadow(world, exceptionType, handlingType, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(null);
    sm.setWithinCode(null);
    sm.setWithinType(handlingType);
    if (MATCH_INFO && sm.maybeMatches()) {
View Full Code Here

    }
    return sm;
  }

  public ShadowMatch matchesHandler(Class exceptionType, Member withinCode) {
    Shadow s = ReflectionShadow.makeHandlerShadow(world, exceptionType, withinCode, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(null);
    sm.setWithinCode(withinCode);
    sm.setWithinType(withinCode.getDeclaringClass());
    if (MATCH_INFO && sm.maybeMatches()) {
View Full Code Here

    }
    return sm;
  }

  public ShadowMatch matchesFieldGet(Field aField, Class withinType) {
    Shadow s = ReflectionShadow.makeFieldGetShadow(world, aField, withinType, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aField);
    sm.setWithinCode(null);
    sm.setWithinType(withinType);
    if (MATCH_INFO && sm.maybeMatches()) {
View Full Code Here

    }
    return sm;
  }

  public ShadowMatch matchesFieldGet(Field aField, Member withinCode) {
    Shadow s = ReflectionShadow.makeFieldGetShadow(world, aField, withinCode, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aField);
    sm.setWithinCode(withinCode);
    sm.setWithinType(withinCode.getDeclaringClass());
    if (MATCH_INFO && sm.maybeMatches()) {
View Full Code Here

    }
    return sm;
  }

  public ShadowMatch matchesFieldSet(Field aField, Class withinType) {
    Shadow s = ReflectionShadow.makeFieldSetShadow(world, aField, withinType, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aField);
    sm.setWithinCode(null);
    sm.setWithinType(withinType);
    if (MATCH_INFO && sm.maybeMatches()) {
View Full Code Here

    }
    return sm;
  }

  public ShadowMatch matchesFieldSet(Field aField, Member withinCode) {
    Shadow s = ReflectionShadow.makeFieldSetShadow(world, aField, withinCode, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aField);
    sm.setWithinCode(withinCode);
    sm.setWithinType(withinCode.getDeclaringClass());
    if (MATCH_INFO && sm.maybeMatches()) {
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.Shadow

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.