org.aspectj.ajdt.internal.compiler.parser
Class DeclarationFactory

java.lang.Object
  extended by org.aspectj.ajdt.internal.compiler.parser.DeclarationFactory
All Implemented Interfaces:
org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

public class DeclarationFactory
extends java.lang.Object
implements org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

Author:
Adrian Colyer, Andy Clement

Constructor Summary
DeclarationFactory()
           
 
Method Summary
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createAfterAdviceDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createAroundAdviceDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration createAspect(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createBeforeAdviceDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration createConstructorDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createDeclareAnnotationDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result, org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode pseudoTokens, org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation annotation, org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser parser)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createDeclareDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result, org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode pseudoTokens, org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser parser)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode createIfPseudoToken(org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser parser, org.aspectj.org.eclipse.jdt.internal.compiler.ast.Expression expr)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createInterTypeConstructorDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createInterTypeFieldDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result, org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeReference onType)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration createIntertypeMemberClassDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult compilationResult)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createInterTypeMethodDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createMethodDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createPointcutDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode createPointcutDesignator(org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser parser, org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode pseudoTokens)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.MessageSend createProceed(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MessageSend m)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode createPseudoToken(org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser parser, java.lang.String value, boolean isIdentifier)
           
 org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode createPseudoTokensFrom(org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode[] tokens, org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
           
 boolean isAfterAdvice(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration adviceDecl)
           
 void setAfterReturningAdviceKind(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration adviceDecl)
           
 void setAfterThrowingAdviceKind(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration adviceDecl)
           
 void setDeclaredModifiers(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration interTypeDecl, int modifiers)
           
 void setDominatesPatternFrom(org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration aspectDecl, org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode pseudoTokens, org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser parser)
           
 void setExtraArgument(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration adviceDeclaration, org.aspectj.org.eclipse.jdt.internal.compiler.ast.Argument arg)
           
 void setInitialization(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration itdFieldDecl, org.aspectj.org.eclipse.jdt.internal.compiler.ast.Expression initialization)
           
 void setLiteralKind(org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode pseudoToken, java.lang.String string)
           
 void setOnType(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration interTypeDecl, org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeReference onType)
           
 void setOnType(org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration interTypeDecl, org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeReference onType)
           
 void setPerClauseFrom(org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration aspectDecl, org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode pseudoTokens, org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser parser)
           
 void setPointcutDesignatorOnAdvice(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration adviceDecl, org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode des)
           
 void setPointcutDesignatorOnPointcut(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration pcutDecl, org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode des)
           
 void setPrivileged(org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration aspectDecl, boolean isPrivileged)
           
 void setSelector(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration interTypeDecl, char[] selector)
           
 boolean shouldTryToRecover(org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeclarationFactory

public DeclarationFactory()
Method Detail

createMethodDeclaration

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createMethodDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
Specified by:
createMethodDeclaration in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createConstructorDeclaration

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration createConstructorDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
Specified by:
createConstructorDeclaration in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createProceed

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.MessageSend createProceed(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MessageSend m)
Specified by:
createProceed in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createAspect

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration createAspect(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
Specified by:
createAspect in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

setPrivileged

public void setPrivileged(org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration aspectDecl,
                          boolean isPrivileged)
Specified by:
setPrivileged in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

setPerClauseFrom

public void setPerClauseFrom(org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration aspectDecl,
                             org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode pseudoTokens,
                             org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser parser)
Specified by:
setPerClauseFrom in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

setDominatesPatternFrom

public void setDominatesPatternFrom(org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration aspectDecl,
                                    org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode pseudoTokens,
                                    org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser parser)
Specified by:
setDominatesPatternFrom in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createPseudoTokensFrom

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode createPseudoTokensFrom(org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode[] tokens,
                                                                                        org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
Specified by:
createPseudoTokensFrom in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createPointcutDeclaration

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createPointcutDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
Specified by:
createPointcutDeclaration in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createAroundAdviceDeclaration

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createAroundAdviceDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
Specified by:
createAroundAdviceDeclaration in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createAfterAdviceDeclaration

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createAfterAdviceDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
Specified by:
createAfterAdviceDeclaration in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createBeforeAdviceDeclaration

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createBeforeAdviceDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
Specified by:
createBeforeAdviceDeclaration in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createPointcutDesignator

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode createPointcutDesignator(org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser parser,
                                                                                          org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode pseudoTokens)
Specified by:
createPointcutDesignator in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

setPointcutDesignatorOnAdvice

public void setPointcutDesignatorOnAdvice(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration adviceDecl,
                                          org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode des)
Specified by:
setPointcutDesignatorOnAdvice in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

setPointcutDesignatorOnPointcut

public void setPointcutDesignatorOnPointcut(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration pcutDecl,
                                            org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode des)
Specified by:
setPointcutDesignatorOnPointcut in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

setExtraArgument

public void setExtraArgument(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration adviceDeclaration,
                             org.aspectj.org.eclipse.jdt.internal.compiler.ast.Argument arg)
Specified by:
setExtraArgument in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

isAfterAdvice

public boolean isAfterAdvice(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration adviceDecl)
Specified by:
isAfterAdvice in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

setAfterThrowingAdviceKind

public void setAfterThrowingAdviceKind(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration adviceDecl)
Specified by:
setAfterThrowingAdviceKind in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

setAfterReturningAdviceKind

public void setAfterReturningAdviceKind(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration adviceDecl)
Specified by:
setAfterReturningAdviceKind in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createDeclareDeclaration

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createDeclareDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result,
                                                                                                    org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode pseudoTokens,
                                                                                                    org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser parser)
Specified by:
createDeclareDeclaration in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createDeclareAnnotationDeclaration

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createDeclareAnnotationDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result,
                                                                                                              org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode pseudoTokens,
                                                                                                              org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation annotation,
                                                                                                              org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser parser)
Specified by:
createDeclareAnnotationDeclaration in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createInterTypeFieldDeclaration

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createInterTypeFieldDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result,
                                                                                                           org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeReference onType)
Specified by:
createInterTypeFieldDeclaration in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createInterTypeMethodDeclaration

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createInterTypeMethodDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
Specified by:
createInterTypeMethodDeclaration in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createInterTypeConstructorDeclaration

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration createInterTypeConstructorDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
Specified by:
createInterTypeConstructorDeclaration in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

setSelector

public void setSelector(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration interTypeDecl,
                        char[] selector)
Specified by:
setSelector in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

setDeclaredModifiers

public void setDeclaredModifiers(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration interTypeDecl,
                                 int modifiers)
Specified by:
setDeclaredModifiers in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

setInitialization

public void setInitialization(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration itdFieldDecl,
                              org.aspectj.org.eclipse.jdt.internal.compiler.ast.Expression initialization)
Specified by:
setInitialization in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

setOnType

public void setOnType(org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration interTypeDecl,
                      org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeReference onType)
Specified by:
setOnType in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createPseudoToken

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode createPseudoToken(org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser parser,
                                                                                   java.lang.String value,
                                                                                   boolean isIdentifier)
Specified by:
createPseudoToken in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createIfPseudoToken

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode createIfPseudoToken(org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser parser,
                                                                                     org.aspectj.org.eclipse.jdt.internal.compiler.ast.Expression expr)
Specified by:
createIfPseudoToken in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

setLiteralKind

public void setLiteralKind(org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode pseudoToken,
                           java.lang.String string)
Specified by:
setLiteralKind in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

shouldTryToRecover

public boolean shouldTryToRecover(org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode node)
Specified by:
shouldTryToRecover in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

createIntertypeMemberClassDeclaration

public org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration createIntertypeMemberClassDeclaration(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult compilationResult)
Specified by:
createIntertypeMemberClassDeclaration in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory

setOnType

public void setOnType(org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration interTypeDecl,
                      org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeReference onType)
Specified by:
setOnType in interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory