Package org.aspectj.weaver.patterns

Examples of org.aspectj.weaver.patterns.PerFromSuper


      }
      if (pc == null) {
        PerClause.Kind kind = getPerClauseForTypeDeclaration(declaration);
        // returning a perFromSuper is enough to get the correct kind..
        // (that's really a hack - AV)
        return new PerFromSuper(kind);
      }
      return pc;
    }
  }
View Full Code Here


      if (aspectPerClause == null) {
        // empty value means singleton unless inherited
        if (!extendsAspect) {
          perClause = new PerSingleton();
        } else {
          perClause = new PerFromSuper(struct.enclosingType.getSuperclass().getPerClause().getKind());
        }
      } else {
        String perX = aspectPerClause.getValue().stringifyValue();
        if (perX == null || perX.length() <= 0) {
          perClause = new PerSingleton();
View Full Code Here

    if (perClause == null) {
      PerClause.Kind kind = lookupPerClauseKind(binding.superclass);
      if (kind == null) {
        perClause = new PerSingleton();
      } else {
        perClause = new PerFromSuper(kind);
      }
    }

    // aspectAttribute = new AjAttribute.Aspect(perClause);
View Full Code Here

      if (aspectPerClause == null) {
        // empty value means singleton unless inherited
        if (!extendsAspect) {
          perClause = new PerSingleton();
        } else {
          perClause = new PerFromSuper(struct.enclosingType.getSuperclass().getPerClause().getKind());
        }
      } else {
        String perX = aspectPerClause.getValue().stringifyValue();
        if (perX == null || perX.length() <= 0) {
          perClause = new PerSingleton();
View Full Code Here

  private TypePattern getTestTypePattern(ResolvedType aspectType) {
    if (lazyTestTypePattern == null) {
      final boolean isPerThis;
      if (aspectType.getPerClause() instanceof PerFromSuper) {
        PerFromSuper ps = (PerFromSuper) aspectType.getPerClause();
        isPerThis = ((PerObject) ps.lookupConcretePerClause(aspectType)).isThis();
      } else {
        isPerThis = ((PerObject) aspectType.getPerClause()).isThis();
      }
      PerThisOrTargetPointcutVisitor v = new PerThisOrTargetPointcutVisitor(!isPerThis, aspectType);
      lazyTestTypePattern = v.getPerTypePointcut(testPointcut);
View Full Code Here

      if (aspectPerClause == null) {
        // empty value means singleton unless inherited
        if (!extendsAspect) {
          perClause = new PerSingleton();
        } else {
          perClause = new PerFromSuper(struct.enclosingType.getSuperclass().getPerClause().getKind());
        }
      } else {
        String perX = aspectPerClause.getValue().stringifyValue();
        if (perX == null || perX.length() <= 0) {
          perClause = new PerSingleton();
View Full Code Here

    private TypePattern getTestTypePattern(ResolvedType aspectType) {
        if (lazyTestTypePattern == null) {
            final boolean isPerThis;
            if (aspectType.getPerClause() instanceof PerFromSuper) {
                PerFromSuper ps = (PerFromSuper) aspectType.getPerClause();
                isPerThis = ((PerObject) ps.lookupConcretePerClause(aspectType)).isThis();
            } else {
                isPerThis = ((PerObject) aspectType.getPerClause()).isThis();
            }
            PerThisOrTargetPointcutVisitor v = new PerThisOrTargetPointcutVisitor(!isPerThis, aspectType);
            lazyTestTypePattern = v.getPerTypePointcut(testPointcut);
View Full Code Here

    if (perClause == null) {
      PerClause.Kind kind = lookupPerClauseKind(binding.superclass);
      if (kind == null) {
        perClause = new PerSingleton();
      } else {
        perClause = new PerFromSuper(kind);
      }
    }
   
    aspectAttribute = new AjAttribute.Aspect(perClause);
   
View Full Code Here

          if (declaration instanceof AspectDeclaration)
           pc =  ((AspectDeclaration)declaration).perClause;
        if (pc==null) {
              PerClause.Kind kind = getPerClauseForTypeDeclaration(declaration);
              //returning a perFromSuper is enough to get the correct kind.. (that's really a hack - AV)
              return new PerFromSuper(kind);
        }
        return pc;
        }
  }
View Full Code Here

            if (aspectPerClause == null) {
                // empty value means singleton unless inherited
                if (!extendsAspect) {
                    perClause = new PerSingleton();
                } else {
                    perClause = new PerFromSuper(struct.enclosingType.getSuperclass().getPerClause().getKind());
                }
            } else {
                String perX = aspectPerClause.getValue().stringifyValue();
                if (perX == null || perX.length() <= 0) {
                    perClause = new PerSingleton();
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.patterns.PerFromSuper

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.