Package org.aspectj.weaver

Examples of org.aspectj.weaver.Shadow


    sm.setWithinType(aConstructor.getDeclaringClass());
    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());
    return sm;
View Full Code Here


    sm.setWithinType(withinCode.getDeclaringClass());
    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);
    return sm;
View Full Code Here

    sm.setWithinType(callerType);
    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);
    return sm;
View Full Code Here

    sm.setWithinType(callerType);
    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());
    return sm;
View Full Code Here

    sm.setWithinType(withinCode.getDeclaringClass());
    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);
    return sm;
View Full Code Here

    sm.setWithinType(handlingType);
    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());
    return sm;
View Full Code Here

    sm.setWithinType(withinCode.getDeclaringClass());
    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);
    return sm;
View Full Code Here

    sm.setWithinType(withinType);
    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());
    return sm;
View Full Code Here

    sm.setWithinType(withinCode.getDeclaringClass());
    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);
    return sm;
View Full Code Here

    sm.setWithinType(withinType);
    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());
    return sm;
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.