public class AjAST extends AST
| Modifier and Type | Method and Description |
|---|---|
static CompilationUnit |
convertCompilationUnit(int level,
CompilationUnitDeclaration compilationUnitDeclaration,
char[] source,
java.util.Map options,
boolean isResolved,
CompilationUnit workingCopy,
IProgressMonitor monitor)
Internal method.
|
AfterAdviceDeclaration |
newAfterAdviceDeclaration()
Creates an unparented after advice declaration node owned by this AST.
|
AfterReturningAdviceDeclaration |
newAfterReturningAdviceDeclaration()
Creates an unparented after returning advice declaration node owned
by this AST.
|
AfterThrowingAdviceDeclaration |
newAfterThrowingAdviceDeclaration()
Creates an unparented after throwing advice declaration node owned
by this AST.
|
static AjAST |
newAjAST(int level)
Creates a new AspectJ abstract syntax tree
(AST) following the specified set of API rules.
|
AjTypeDeclaration |
newAjTypeDeclaration()
Creates an unparented ajtype declaration node owned by this AST.
|
AndPointcut |
newAndPointcut()
Creates an unparented AndPointcut node owned by this AST.
|
AroundAdviceDeclaration |
newAroundAdviceDeclaration()
Creates an unparented around advice declaration node owned by this AST.
|
AspectDeclaration |
newAspectDeclaration()
Creates an unparented aspect declaration node owned by this AST.
|
BeforeAdviceDeclaration |
newBeforeAdviceDeclaration()
Creates an unparented before advice declaration node owned by this AST.
|
CflowPointcut |
newCflowPointcut()
Creates an unparented CflowPointcut node owned by this AST.
|
DeclareAtConstructorDeclaration |
newDeclareAtConstructorDeclaration()
Creates an unparented declare at constructor declaration node owned by this AST.
|
DeclareAtFieldDeclaration |
newDeclareAtFieldDeclaration()
Creates an unparented declare at field declaration node owned by this AST.
|
DeclareAtMethodDeclaration |
newDeclareAtMethodDeclaration()
Creates an unparented declare at method declaration node owned by this AST.
|
DeclareAtTypeDeclaration |
newDeclareAtTypeDeclaration()
Creates an unparented declare at type declaration node owned by this AST.
|
DeclareErrorDeclaration |
newDeclareErrorDeclaration()
Creates an unparented declare error declaration node owned by this AST.
|
DeclareParentsDeclaration |
newDeclareParentsDeclaration()
Creates an unparented declare parents declaration node owned by this AST.
|
DeclarePrecedenceDeclaration |
newDeclarePrecedenceDeclaration()
Creates an unparented declare precedence declaration node owned by this AST.
|
DeclareSoftDeclaration |
newDeclareSoftDeclaration()
Creates an unparented declare soft declaration node owned by this AST.
|
DeclareWarningDeclaration |
newDeclareWarningDeclaration()
Creates an unparented declare warning declaration node owned by this AST.
|
DefaultPointcut |
newDefaultPointcut()
Creates an unparented default pointcut node owned by this AST.
|
DefaultTypePattern |
newDefaultTypePattern()
Creates an unparented default type pattern node owned by this AST.
|
InterTypeFieldDeclaration |
newInterTypeFieldDeclaration()
Creates a new unparented intertype field declaration node owned by this
AST.
|
InterTypeMethodDeclaration |
newInterTypeMethodDeclaration()
Creates an unparented intertype method declaration node owned by
this AST.
|
NotPointcut |
newNotPointcut()
Creates an unparented NotPointcut node owned by this AST.
|
OrPointcut |
newOrPointcut()
Creates an unparented OrPointcut node owned by this AST.
|
PerCflow |
newPerCflow()
Creates an unparented PerCflow node owned by this AST.
|
PerObject |
newPerObject()
Creates an unparented perobject node owned by this AST.
|
PerTypeWithin |
newPerTypeWithin()
Creates an unparented pertypewithin node owned by this AST.
|
PointcutDeclaration |
newPointcutDeclaration()
Creates an unparented pointcut declaration node owned by this AST.
|
ReferencePointcut |
newReferencePointcut()
Creates an unparented reference pointcut node owned by this AST.
|
SignaturePattern |
newSignaturePattern()
Creates an unparented default signature pattern node owned by this AST.
|
apiLevel, convertCompilationUnit, convertCompilationUnit, createInstance, createInstance, hasBindingsRecovery, hasResolvedBindings, hasStatementsRecovery, modificationCount, newAnnotationTypeDeclaration, newAnnotationTypeMemberDeclaration, newAnonymousClassDeclaration, newArrayAccess, newArrayCreation, newArrayInitializer, newArrayType, newArrayType, newAssertStatement, newAssignment, newAST, newBlock, newBlockComment, newBooleanLiteral, newBreakStatement, newCastExpression, newCatchClause, newCharacterLiteral, newClassInstanceCreation, newCompilationUnit, newConditionalExpression, newConstructorInvocation, newContinueStatement, newCreationReference, newDimension, newDoStatement, newEmptyStatement, newEnhancedForStatement, newEnumConstantDeclaration, newEnumDeclaration, newExpressionMethodReference, newExpressionStatement, newFieldAccess, newFieldDeclaration, newForStatement, newIfStatement, newImportDeclaration, newInfixExpression, newInitializer, newInstanceofExpression, newIntersectionType, newJavadoc, newLabeledStatement, newLambdaExpression, newLineComment, newMarkerAnnotation, newMemberRef, newMemberValuePair, newMethodDeclaration, newMethodInvocation, newMethodRef, newMethodRefParameter, newModifier, newModifiers, newName, newName, newNameQualifiedType, newNormalAnnotation, newNullLiteral, newNumberLiteral, newNumberLiteral, newPackageDeclaration, newParameterizedType, newParenthesizedExpression, newPostfixExpression, newPrefixExpression, newPrimitiveType, newQualifiedName, newQualifiedType, newReturnStatement, newSimpleName, newSimpleType, newSingleMemberAnnotation, newSingleVariableDeclaration, newStringLiteral, newSuperConstructorInvocation, newSuperFieldAccess, newSuperMethodInvocation, newSuperMethodReference, newSwitchCase, newSwitchStatement, newSynchronizedStatement, newTagElement, newTextElement, newThisExpression, newThrowStatement, newTryStatement, newTypeDeclaration, newTypeDeclarationStatement, newTypeDeclarationStatement, newTypeLiteral, newTypeMethodReference, newTypeParameter, newUnionType, newVariableDeclarationExpression, newVariableDeclarationFragment, newVariableDeclarationStatement, newWhileStatement, newWildcardType, parseCompilationUnit, parseCompilationUnit, parseCompilationUnit, parseCompilationUnit, resolveWellKnownTypepublic static AjAST newAjAST(int level)
Clients should use this method specifing AST.JLS3 as the
AST level in all cases, even when dealing with JDK 1.3 or 1.4..
level - the API level; one of the LEVEL constantsjava.lang.IllegalArgumentException - if:
public static CompilationUnit convertCompilationUnit(int level, CompilationUnitDeclaration compilationUnitDeclaration, char[] source, java.util.Map options, boolean isResolved, CompilationUnit workingCopy, IProgressMonitor monitor)
This method converts the given internal compiler AST for the given source string into a compilation unit. This method is not intended to be called by clients.
level - the API level; one of the LEVEL constantscompilationUnitDeclaration - an internal AST node for a compilation unit declarationsource - the string of the Java compilation unitoptions - compiler optionsworkingCopy - the working copy that the AST is created frommonitor - the progress monitor used to report progress and request cancelation,
or null if noneisResolved - whether the given compilation unit declaration is resolvedpublic AspectDeclaration newAspectDeclaration()
To set the perclause, use this method and then call
AspectDeclaration.setPerClause(ASTNode).
To create a privileged aspect, use this method and then call
AspectDeclaration.setPrivileged(true).
public AjTypeDeclaration newAjTypeDeclaration()
To create an aspect, use this method and then call
AjTypeDeclaration.setAspect(true).
public AfterAdviceDeclaration newAfterAdviceDeclaration()
public AfterReturningAdviceDeclaration newAfterReturningAdviceDeclaration()
public AfterThrowingAdviceDeclaration newAfterThrowingAdviceDeclaration()
public BeforeAdviceDeclaration newBeforeAdviceDeclaration()
public AroundAdviceDeclaration newAroundAdviceDeclaration()
public DeclareAtConstructorDeclaration newDeclareAtConstructorDeclaration()
java.lang.UnsupportedOperationException - if this operation is used in
a JLS2 ASTpublic DeclareAtFieldDeclaration newDeclareAtFieldDeclaration()
java.lang.UnsupportedOperationException - if this operation is used in
a JLS2 ASTpublic DeclareAtMethodDeclaration newDeclareAtMethodDeclaration()
java.lang.UnsupportedOperationException - if this operation is used in
a JLS2 ASTpublic DeclareAtTypeDeclaration newDeclareAtTypeDeclaration()
java.lang.UnsupportedOperationException - if this operation is used in
a JLS2 ASTpublic DeclareErrorDeclaration newDeclareErrorDeclaration()
public DeclareParentsDeclaration newDeclareParentsDeclaration()
To create an extends declare parents, use this method and then call
DeclareParentsDeclaration.setExtends(true).
public DeclarePrecedenceDeclaration newDeclarePrecedenceDeclaration()
public DeclareSoftDeclaration newDeclareSoftDeclaration()
public DeclareWarningDeclaration newDeclareWarningDeclaration()
public InterTypeFieldDeclaration newInterTypeFieldDeclaration()
public InterTypeMethodDeclaration newInterTypeMethodDeclaration()
public PointcutDeclaration newPointcutDeclaration()
public AndPointcut newAndPointcut()
public CflowPointcut newCflowPointcut()
public NotPointcut newNotPointcut()
public OrPointcut newOrPointcut()
public PerCflow newPerCflow()
public PerObject newPerObject()
public PerTypeWithin newPerTypeWithin()
public ReferencePointcut newReferencePointcut()
public DefaultPointcut newDefaultPointcut()
To edit the detail string, use this method and then call
DefaultPointcut.setDetail("newString").
public DefaultTypePattern newDefaultTypePattern()
To edit the detail string, use this method and then call
DefaultTypePattern.setDetail("newString").
public SignaturePattern newSignaturePattern()
To edit the detail string, use this method and then call
SignaturePattern.setDetail("newString").