Package org.aspectj.weaver

Examples of org.aspectj.weaver.Shadow$Kind


    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


    super(policy, options, problemFactory);
  }

  public void unhandledException(TypeBinding exceptionType, ASTNode location) {
    if (!factory.getWorld().getDeclareSoft().isEmpty()) {
      Shadow callSite = factory.makeShadow(location, referenceContext);
      Shadow enclosingExec = factory.makeShadow(referenceContext);
      // PR 72157 - calls to super / this within a constructor are not part of the cons join point.
      if ((callSite == null) && (enclosingExec.getKind() == Shadow.ConstructorExecution)
          && (location instanceof ExplicitConstructorCall)) {
        super.unhandledException(exceptionType, location);
        return;
      }
      // System.err.println("about to show error for unhandled exception: " + new String(exceptionType.sourceName()) +
View Full Code Here

  // sm.setWithinType(aMember.getDeclaringClass());
  // return sm;
  // }

  private ShadowMatch matchesExecution(ResolvedMember aMember) {
    Shadow s = StandardShadow.makeExecutionShadow(world, aMember, this.matchContext);
    StandardShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aMember);
    sm.setWithinCode(null);
    sm.setWithinType((ResolvedType) aMember.getDeclaringType());
    return sm;
View Full Code Here

  // sm.setWithinType(aClass);
  // return sm;
  // }

  public ShadowMatch matchesStaticInitialization(ResolvedType aType) {
    Shadow s = StandardShadow.makeStaticInitializationShadow(world, aType, this.matchContext);
    StandardShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(null);
    sm.setWithinCode(null);
    sm.setWithinType(aType);
    return sm;
View Full Code Here

  // sm.setWithinType(aConstructor.getDeclaringClass());
  // return sm;
  // }
  //
  public ShadowMatch matchesMethodCall(ResolvedMember aMethod, ResolvedMember withinCode) {
    Shadow s = StandardShadow.makeCallShadow(world, aMethod, withinCode, this.matchContext);
    StandardShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aMethod);
    sm.setWithinCode(withinCode);
    sm.setWithinType((ResolvedType) withinCode.getDeclaringType());
    return sm;
View Full Code Here

    }
    return match;
  }

  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

    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);
    if (MATCH_INFO && sm.maybeMatches()) {
View Full Code Here

    }
    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());
    if (MATCH_INFO && sm.maybeMatches()) {
View Full Code Here

    }
    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());
    if (MATCH_INFO && sm.maybeMatches()) {
View Full Code Here

    }
    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());
    if (MATCH_INFO && sm.maybeMatches()) {
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.Shadow$Kind

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.