org.aspectj.ajdt.internal.compiler.ast
Class AtAspectJAnnotationFactory
java.lang.Object
org.aspectj.ajdt.internal.compiler.ast.AtAspectJAnnotationFactory
public class AtAspectJAnnotationFactory
- extends java.lang.Object
Method Summary |
static void |
addAnnotation(AjMethodDeclaration decl,
Annotation annotation,
BlockScope scope)
|
static Annotation |
createAfterAnnotation(java.lang.String pointcutExpression,
java.lang.String argNames,
int pos)
|
static Annotation |
createAfterReturningAnnotation(java.lang.String pointcutExpression,
java.lang.String argNames,
java.lang.String extraArgumentName,
int pos)
|
static Annotation |
createAfterThrowingAnnotation(java.lang.String pointcutExpression,
java.lang.String argNames,
java.lang.String extraArgumentName,
int pos)
|
static Annotation |
createAroundAnnotation(java.lang.String pointcutExpression,
java.lang.String argNames,
int pos)
|
static Annotation |
createAspectAnnotation(java.lang.String perclause,
int pos)
Create an @Aspect annotation for a code style aspect declaration starting at
the given position in the source file |
static Annotation |
createBeforeAnnotation(java.lang.String pointcutExpression,
java.lang.String argNames,
int pos)
|
static Annotation |
createDeclareAnnAnnotation(java.lang.String patternString,
java.lang.String annString,
java.lang.String kind,
int pos)
|
static Annotation |
createDeclareErrorOrWarningAnnotation(java.lang.String pointcutExpression,
java.lang.String message,
boolean isError,
int pos)
|
static Annotation |
createDeclareParentsAnnotation(java.lang.String childPattern,
java.lang.String parentPatterns,
boolean isExtends,
int pos)
|
static Annotation |
createDeclarePrecedenceAnnotation(java.lang.String pointcutExpression,
int pos)
|
static Annotation |
createDeclareSoftAnnotation(java.lang.String pointcutExpression,
java.lang.String exceptionType,
int pos)
|
static Annotation |
createITDAnnotation(char[] targetTypeName,
int modifiers,
char[] name,
int pos)
|
static Annotation |
createPointcutAnnotation(java.lang.String pointcutExpression,
java.lang.String argNames,
int pos)
|
static Annotation |
createPrivilegedAnnotation(int pos)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtAspectJAnnotationFactory
public AtAspectJAnnotationFactory()
createAspectAnnotation
public static Annotation createAspectAnnotation(java.lang.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(java.lang.String pointcutExpression,
java.lang.String argNames,
int pos)
createAfterAnnotation
public static Annotation createAfterAnnotation(java.lang.String pointcutExpression,
java.lang.String argNames,
int pos)
createAfterReturningAnnotation
public static Annotation createAfterReturningAnnotation(java.lang.String pointcutExpression,
java.lang.String argNames,
java.lang.String extraArgumentName,
int pos)
createAfterThrowingAnnotation
public static Annotation createAfterThrowingAnnotation(java.lang.String pointcutExpression,
java.lang.String argNames,
java.lang.String extraArgumentName,
int pos)
createAroundAnnotation
public static Annotation createAroundAnnotation(java.lang.String pointcutExpression,
java.lang.String argNames,
int pos)
createPointcutAnnotation
public static Annotation createPointcutAnnotation(java.lang.String pointcutExpression,
java.lang.String argNames,
int pos)
createDeclareErrorOrWarningAnnotation
public static Annotation createDeclareErrorOrWarningAnnotation(java.lang.String pointcutExpression,
java.lang.String message,
boolean isError,
int pos)
createDeclareParentsAnnotation
public static Annotation createDeclareParentsAnnotation(java.lang.String childPattern,
java.lang.String parentPatterns,
boolean isExtends,
int pos)
createDeclareSoftAnnotation
public static Annotation createDeclareSoftAnnotation(java.lang.String pointcutExpression,
java.lang.String exceptionType,
int pos)
createDeclareAnnAnnotation
public static Annotation createDeclareAnnAnnotation(java.lang.String patternString,
java.lang.String annString,
java.lang.String kind,
int pos)
createITDAnnotation
public static Annotation createITDAnnotation(char[] targetTypeName,
int modifiers,
char[] name,
int pos)
createDeclarePrecedenceAnnotation
public static Annotation createDeclarePrecedenceAnnotation(java.lang.String pointcutExpression,
int pos)
addAnnotation
public static void addAnnotation(AjMethodDeclaration decl,
Annotation annotation,
BlockScope scope)