Package org.aspectj.weaver.patterns

Examples of org.aspectj.weaver.patterns.DeclarePrecedence


        if (iter.hasNext()) parents.append(", ");
      }   
      annotation = AtAspectJAnnotationFactory
                  .createDeclareParentsAnnotation(childPattern,parents.toString(),dp.isExtends(),declarationSourceStart);
    } else if (declareDecl instanceof DeclarePrecedence) {
      DeclarePrecedence dp = (DeclarePrecedence) declareDecl;
      String precedenceList = dp.getPatterns().toString();
      annotation = AtAspectJAnnotationFactory.createDeclarePrecedenceAnnotation(precedenceList,declarationSourceStart);
    } else if (declareDecl instanceof DeclareSoft) {
      DeclareSoft ds = (DeclareSoft) declareDecl;
      annotation = AtAspectJAnnotationFactory
        .createDeclareSoftAnnotation(ds.getPointcut().toString(),ds.getException().getExactType().getName(),declarationSourceStart);     
View Full Code Here


        node.setName(name + DECLARE_SOFT);
        node.setDetails(genTypePatternLabel(ds.getException()));
       
      } else if (declare.declareDecl instanceof DeclarePrecedence) {
        node.setKind( IProgramElement.Kind.DECLARE_PRECEDENCE);
        DeclarePrecedence ds = (DeclarePrecedence)declare.declareDecl;
        node.setName(name + DECLARE_PRECEDENCE);
        node.setDetails(genPrecedenceListLabel(ds.getPatterns()));
       
      } else if (declare.declareDecl instanceof DeclareAnnotation) {
          DeclareAnnotation deca = (DeclareAnnotation)declare.declareDecl;
        String thekind = deca.getKind().toString();
        node.setName(name+"@"+thekind.substring(3));
View Full Code Here

        if (aspect != null) {
            ElementNameValuePair precedence = getAnnotationElement(aspect, VALUE);
            if (precedence != null) {
                String precedencePattern = precedence.getValue().stringifyValue();
                PatternParser parser = new PatternParser(precedencePattern);
                DeclarePrecedence ajPrecedence = parser.parseDominates();
                struct.ajAttributes.add(new AjAttribute.DeclareAttribute(ajPrecedence));
                return true;
            }
        }
        return false;
View Full Code Here

TOP

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

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.