Class AtAspectJAnnotationFactory

java.lang.Object
org.aspectj.ajdt.internal.compiler.ast.AtAspectJAnnotationFactory

public class AtAspectJAnnotationFactory extends Object
Author:
colyer Creates @AspectJ annotations for use by AtAspectJVisitor
  • Constructor Details

    • AtAspectJAnnotationFactory

      public AtAspectJAnnotationFactory()
  • Method Details

    • createAspectAnnotation

      public static Annotation createAspectAnnotation​(String perclause, int pos)
      Create an @Aspect annotation for a code style aspect declaration starting at the given position in the source file
    • createPrivilegedAnnotation

      public static Annotation createPrivilegedAnnotation​(int pos)
    • createBeforeAnnotation

      public static Annotation createBeforeAnnotation​(String pointcutExpression, String argNames, int pos)
    • createAfterAnnotation

      public static Annotation createAfterAnnotation​(String pointcutExpression, String argNames, int pos)
    • createAfterReturningAnnotation

      public static Annotation createAfterReturningAnnotation​(String pointcutExpression, String argNames, String extraArgumentName, int pos)
    • createAfterThrowingAnnotation

      public static Annotation createAfterThrowingAnnotation​(String pointcutExpression, String argNames, String extraArgumentName, int pos)
    • createAroundAnnotation

      public static Annotation createAroundAnnotation​(String pointcutExpression, String argNames, int pos)
    • createPointcutAnnotation

      public static Annotation createPointcutAnnotation​(String pointcutExpression, String argNames, int pos)
    • createDeclareErrorOrWarningAnnotation

      public static Annotation createDeclareErrorOrWarningAnnotation​(String pointcutExpression, String message, boolean isError, int pos)
    • createDeclareParentsAnnotation

      public static Annotation createDeclareParentsAnnotation​(String childPattern, String parentPatterns, boolean isExtends, int pos)
    • createDeclareSoftAnnotation

      public static Annotation createDeclareSoftAnnotation​(String pointcutExpression, String exceptionType, int pos)
    • createDeclareAnnAnnotation

      public static Annotation createDeclareAnnAnnotation​(String patternString, String annString, String kind, int pos)
    • createITDAnnotation

      public static Annotation createITDAnnotation​(char[] targetTypeName, int modifiers, char[] name, int pos)
    • createDeclarePrecedenceAnnotation

      public static Annotation createDeclarePrecedenceAnnotation​(String pointcutExpression, int pos)
    • addAnnotation

      public static void addAnnotation​(AjMethodDeclaration decl, Annotation annotation, BlockScope scope)