Class AtAspectJAnnotationFactory
java.lang.Object
org.aspectj.ajdt.internal.compiler.ast.AtAspectJAnnotationFactory
- Author:
- colyer Creates @AspectJ annotations for use by AtAspectJVisitor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addAnnotation(AjMethodDeclaration decl, Annotation annotation, BlockScope scope)
static Annotation
createAfterAnnotation(String pointcutExpression, String argNames, int pos)
static Annotation
createAfterReturningAnnotation(String pointcutExpression, String argNames, String extraArgumentName, int pos)
static Annotation
createAfterThrowingAnnotation(String pointcutExpression, String argNames, String extraArgumentName, int pos)
static Annotation
createAroundAnnotation(String pointcutExpression, String argNames, int pos)
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 filestatic Annotation
createBeforeAnnotation(String pointcutExpression, String argNames, int pos)
static Annotation
createDeclareAnnAnnotation(String patternString, String annString, String kind, int pos)
static Annotation
createDeclareErrorOrWarningAnnotation(String pointcutExpression, String message, boolean isError, int pos)
static Annotation
createDeclareParentsAnnotation(String childPattern, String parentPatterns, boolean isExtends, int pos)
static Annotation
createDeclarePrecedenceAnnotation(String pointcutExpression, int pos)
static Annotation
createDeclareSoftAnnotation(String pointcutExpression, String exceptionType, int pos)
static Annotation
createITDAnnotation(char[] targetTypeName, int modifiers, char[] name, int pos)
static Annotation
createPointcutAnnotation(String pointcutExpression, String argNames, int pos)
static Annotation
createPrivilegedAnnotation(int pos)
-
Constructor Details
-
AtAspectJAnnotationFactory
public AtAspectJAnnotationFactory()
-
-
Method Details
-
createAspectAnnotation
Create an @Aspect annotation for a code style aspect declaration starting at the given position in the source file -
createPrivilegedAnnotation
-
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
-
addAnnotation
public static void addAnnotation(AjMethodDeclaration decl, Annotation annotation, BlockScope scope)
-