Examples of Shadow


Examples of org.aspectj.weaver.Shadow

    Kind kind = Shadow.FieldGet;
    return new StandardShadow(inWorld, kind, signature, enclosingShadow, enclosingType, enclosingMember, withContext);
  }

  public static Shadow makeFieldSetShadow(World inWorld, Field forField, Class callerType, MatchingContext withContext) {
    Shadow enclosingShadow = makeStaticInitializationShadow(inWorld, callerType, withContext);
    Member signature = ReflectionBasedReferenceTypeDelegateFactory.createResolvedField(forField, inWorld);
    ResolvedMember enclosingMember = ReflectionBasedReferenceTypeDelegateFactory.createStaticInitMember(callerType, inWorld);
    ResolvedType enclosingType = enclosingMember.getDeclaringType().resolve(inWorld);
    Kind kind = Shadow.FieldSet;
    return new StandardShadow(inWorld, kind, signature, enclosingShadow, enclosingType, enclosingMember, withContext);
View Full Code Here

Examples of org.aspectj.weaver.Shadow

    return new StandardShadow(inWorld, kind, signature, enclosingShadow, enclosingType, enclosingMember, withContext);
  }

  public static Shadow makeFieldSetShadow(World inWorld, Field forField, java.lang.reflect.Member inMember,
      MatchingContext withContext) {
    Shadow enclosingShadow = makeExecutionShadow(inWorld, inMember, withContext);
    Member signature = ReflectionBasedReferenceTypeDelegateFactory.createResolvedField(forField, inWorld);
    ResolvedMember enclosingMember = ReflectionBasedReferenceTypeDelegateFactory.createResolvedMember(inMember, inWorld);
    ResolvedType enclosingType = enclosingMember.getDeclaringType().resolve(inWorld);
    Kind kind = Shadow.FieldSet;
    return new StandardShadow(inWorld, kind, signature, enclosingShadow, enclosingType, enclosingMember, withContext);
View Full Code Here

Examples of org.aspectj.weaver.Shadow

  public ShadowMatch matchesConstructorExecution(Constructor aConstructor) {
    return matchesExecution(aConstructor);
  }

  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.Shadow

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

Examples of org.aspectj.weaver.Shadow

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

Examples of org.aspectj.weaver.Shadow

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

Examples of org.aspectj.weaver.Shadow

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

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

Examples of org.aspectj.weaver.Shadow

    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

Examples of org.aspectj.weaver.Shadow

    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
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.