From: aclement Date: Wed, 24 Nov 2010 19:37:04 +0000 (+0000) Subject: 329925: declare @field remove annotation X-Git-Tag: V1_6_11M1~33 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=624e0ac0c2e931d00a8261e79af22af2ba720fc7;p=aspectj.git 329925: declare @field remove annotation --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/parser/DeclarationFactory.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/parser/DeclarationFactory.java index 85999476d..be12049fd 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/parser/DeclarationFactory.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/parser/DeclarationFactory.java @@ -144,8 +144,11 @@ public class DeclarationFactory implements IDeclarationFactory { } public MethodDeclaration createDeclareAnnotationDeclaration(CompilationResult result, ASTNode pseudoTokens, - Annotation annotation, Parser parser) { + Annotation annotation, Parser parser, char kind) { DeclareAnnotation declare = (DeclareAnnotation) ((PseudoTokens) pseudoTokens).parseAnnotationDeclare(parser); + if (kind == '-') { + declare.setRemover(true); + } DeclareAnnotationDeclaration decl = new DeclareAnnotationDeclaration(result, declare, annotation); return decl; } @@ -178,7 +181,6 @@ public class DeclarationFactory implements IDeclarationFactory { ((InterTypeDeclaration) interTypeDecl).setOnType(onType); } - public ASTNode createPseudoToken(Parser parser, String value, boolean isIdentifier) { return new PseudoToken(parser, value, isIdentifier); } @@ -198,7 +200,7 @@ public class DeclarationFactory implements IDeclarationFactory { public TypeDeclaration createIntertypeMemberClassDeclaration(CompilationResult compilationResult) { return new IntertypeMemberClassDeclaration(compilationResult); } - + public void setOnType(TypeDeclaration interTypeDecl, TypeReference onType) { ((IntertypeMemberClassDeclaration) interTypeDecl).setOnType(onType); }