Package org.aspectj.weaver

Examples of org.aspectj.weaver.Member


  private Map annotationVar = new HashMap();
  private AnnotationFinder annotationFinder;

  public static Shadow makeExecutionShadow(World inWorld, java.lang.reflect.Member forMethod, MatchingContext withContext) {
    Kind kind = (forMethod instanceof Method) ? Shadow.MethodExecution : Shadow.ConstructorExecution;
    Member signature = ReflectionBasedReferenceTypeDelegateFactory.createResolvedMember(forMethod, inWorld);
    ResolvedType enclosingType = signature.getDeclaringType().resolve(inWorld);
    return new StandardShadow(inWorld, kind, signature, null, enclosingType, null, withContext);
  }
View Full Code Here


    return new StandardShadow(inWorld, kind, forMethod, null, (ResolvedType) forMethod.getDeclaringType(), null, withContext);
  }

  public static Shadow makeAdviceExecutionShadow(World inWorld, java.lang.reflect.Method forMethod, MatchingContext withContext) {
    Kind kind = Shadow.AdviceExecution;
    Member signature = ReflectionBasedReferenceTypeDelegateFactory.createResolvedAdviceMember(forMethod, inWorld);
    ResolvedType enclosingType = signature.getDeclaringType().resolve(inWorld);
    return new StandardShadow(inWorld, kind, signature, null, enclosingType, null, withContext);
  }
View Full Code Here

  }

  public static Shadow makeCallShadow(World inWorld, java.lang.reflect.Member aMember, Class thisClass,
      MatchingContext withContext) {
    Shadow enclosingShadow = makeStaticInitializationShadow(inWorld, thisClass, withContext);
    Member signature = ReflectionBasedReferenceTypeDelegateFactory.createResolvedMember(aMember, inWorld);
    ResolvedMember enclosingMember = ReflectionBasedReferenceTypeDelegateFactory.createStaticInitMember(thisClass, inWorld);
    ResolvedType enclosingType = enclosingMember.getDeclaringType().resolve(inWorld);
    Kind kind = aMember instanceof Method ? Shadow.MethodCall : Shadow.ConstructorCall;
    return new StandardShadow(inWorld, kind, signature, enclosingShadow, enclosingType, enclosingMember, withContext);
  }
View Full Code Here

    Kind kind = aMember instanceof Method ? Shadow.MethodCall : Shadow.ConstructorCall;
    return new StandardShadow(inWorld, kind, signature, enclosingShadow, enclosingType, enclosingMember, withContext);
  }

  public static Shadow makeStaticInitializationShadow(World inWorld, Class forType, MatchingContext withContext) {
    Member signature = ReflectionBasedReferenceTypeDelegateFactory.createStaticInitMember(forType, inWorld);
    ResolvedType enclosingType = signature.getDeclaringType().resolve(inWorld);
    Kind kind = Shadow.StaticInitialization;
    return new StandardShadow(inWorld, kind, signature, null, enclosingType, null, withContext);
  }
View Full Code Here

      }
    }
    // Member signature = ReflectionBasedReferenceTypeDelegateFactory.createStaticInitMember(forType, inWorld);
    Kind kind = Shadow.StaticInitialization;
    if (clinit == -1) {
      Member clinitMember = new ResolvedMemberImpl(org.aspectj.weaver.Member.STATIC_INITIALIZATION, forType, Modifier.STATIC,
          ResolvedType.VOID, "<clinit>", new UnresolvedType[0], new UnresolvedType[0]);
      return new StandardShadow(inWorld, kind, clinitMember, null, forType, null, withContext);
    } else {
      return new StandardShadow(inWorld, kind, members[clinit], null, forType, null, withContext);
    }
View Full Code Here

    }
  }

  public static Shadow makePreInitializationShadow(World inWorld, Constructor forConstructor, MatchingContext withContext) {
    Kind kind = Shadow.PreInitialization;
    Member signature = ReflectionBasedReferenceTypeDelegateFactory.createResolvedMember(forConstructor, inWorld);
    ResolvedType enclosingType = signature.getDeclaringType().resolve(inWorld);
    return new StandardShadow(inWorld, kind, signature, null, enclosingType, null, withContext);
  }
View Full Code Here

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

  public static Shadow makeInitializationShadow(World inWorld, Constructor forConstructor, MatchingContext withContext) {
    Kind kind = Shadow.Initialization;
    Member signature = ReflectionBasedReferenceTypeDelegateFactory.createResolvedMember(forConstructor, inWorld);
    ResolvedType enclosingType = signature.getDeclaringType().resolve(inWorld);
    return new StandardShadow(inWorld, kind, signature, null, enclosingType, null, withContext);
  }
View Full Code Here

  }

  public static Shadow makeHandlerShadow(World inWorld, Class exceptionType, Class withinType, MatchingContext withContext) {
    Kind kind = Shadow.ExceptionHandler;
    Shadow enclosingShadow = makeStaticInitializationShadow(inWorld, withinType, withContext);
    Member signature = ReflectionBasedReferenceTypeDelegateFactory.createHandlerMember(exceptionType, withinType, inWorld);
    ResolvedMember enclosingMember = ReflectionBasedReferenceTypeDelegateFactory.createStaticInitMember(withinType, inWorld);
    ResolvedType enclosingType = enclosingMember.getDeclaringType().resolve(inWorld);
    return new StandardShadow(inWorld, kind, signature, enclosingShadow, enclosingType, enclosingMember, withContext);
  }
View Full Code Here

  public static Shadow makeHandlerShadow(World inWorld, Class exceptionType, java.lang.reflect.Member withinCode,
      MatchingContext withContext) {
    Kind kind = Shadow.ExceptionHandler;
    Shadow enclosingShadow = makeExecutionShadow(inWorld, withinCode, withContext);
    Member signature = ReflectionBasedReferenceTypeDelegateFactory.createHandlerMember(exceptionType, withinCode
        .getDeclaringClass(), inWorld);
    ResolvedMember enclosingMember = ReflectionBasedReferenceTypeDelegateFactory.createResolvedMember(withinCode, inWorld);
    ResolvedType enclosingType = enclosingMember.getDeclaringType().resolve(inWorld);
    return new StandardShadow(inWorld, kind, signature, enclosingShadow, enclosingType, enclosingMember, withContext);
  }
View Full Code Here

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

  public static Shadow makeFieldGetShadow(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.FieldGet;
    return new StandardShadow(inWorld, kind, signature, enclosingShadow, enclosingType, enclosingMember, withContext);
  }
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.Member

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.