From 624e0ac0c2e931d00a8261e79af22af2ba720fc7 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 24 Nov 2010 19:37:04 +0000 Subject: [PATCH] 329925: declare @field remove annotation --- .../ajdt/internal/compiler/parser/DeclarationFactory.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); } -- 2.39.5