diff options
author | wisberg <wisberg> | 2003-10-29 08:45:56 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-10-29 08:45:56 +0000 |
commit | 2c735c83fc93a2aba58f2c3114316828d2598ed0 (patch) | |
tree | 80937923bb948e6993fa62ae6705d3ed10c5b251 /org.aspectj.ajdt.core | |
parent | e0bc1254a86193d6583ec8877046624d4798625d (diff) | |
download | aspectj-2c735c83fc93a2aba58f2c3114316828d2598ed0.tar.gz aspectj-2c735c83fc93a2aba58f2c3114316828d2598ed0.zip |
declare -> declareDecl for ajc
Diffstat (limited to 'org.aspectj.ajdt.core')
2 files changed, 19 insertions, 19 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java index 6c5064590..a1c325870 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java @@ -26,7 +26,7 @@ import org.eclipse.jdt.internal.compiler.lookup.ClassScope; import org.eclipse.jdt.internal.compiler.parser.Parser; public class DeclareDeclaration extends MethodDeclaration { - public Declare declare; + public Declare declareDecl; /** * Constructor for IntraTypeDeclaration. @@ -34,12 +34,12 @@ public class DeclareDeclaration extends MethodDeclaration { static int counter = 0; //XXX evil public DeclareDeclaration(CompilationResult result, Declare symbolicDeclare) { super(result); - this.declare = symbolicDeclare; - if (declare != null) { + this.declareDecl = symbolicDeclare; + if (declareDecl != null) { // AMC added init of declarationSourceXXX fields which are used // in AsmBuilder for processing of MethodDeclaration locations. - declarationSourceStart = sourceStart = declare.getStart(); - declarationSourceEnd = sourceEnd = declare.getEnd(); + declarationSourceStart = sourceStart = declareDecl.getStart(); + declarationSourceEnd = sourceEnd = declareDecl.getEnd(); } //??? we might need to set parameters to be empty this.returnType = TypeReference.baseTypeReference(T_void, 0); @@ -53,7 +53,7 @@ public class DeclareDeclaration extends MethodDeclaration { * method. */ public void generateCode(ClassScope classScope, ClassFile classFile) { - classFile.extraAttributes.add(new EclipseAttributeAdapter(new AjAttribute.DeclareAttribute(declare))); + classFile.extraAttributes.add(new EclipseAttributeAdapter(new AjAttribute.DeclareAttribute(declareDecl))); return; } @@ -80,12 +80,12 @@ public class DeclareDeclaration extends MethodDeclaration { public Declare build(ClassScope classScope) { - if (declare == null) return null; + if (declareDecl == null) return null; EclipseScope scope = new EclipseScope(new FormalBinding[0], classScope); - declare.resolve(scope); - return declare; + declareDecl.resolve(scope); + return declareDecl; } @@ -94,7 +94,7 @@ public class DeclareDeclaration extends MethodDeclaration { public String toString(int tab) { - if (declare == null) return tabString(tab) + "<declare>"; - else return tabString(tab) + declare.toString(); + if (declareDecl == null) return tabString(tab) + "<declare>"; + else return tabString(tab) + declareDecl.toString(); } } diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java index 114bf7439..99996f74b 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java @@ -79,8 +79,8 @@ public class AsmElementFormatter { } else if (methodDeclaration instanceof DeclareDeclaration) { DeclareDeclaration declare = (DeclareDeclaration)methodDeclaration; String name = DEC_LABEL + " "; - if (declare.declare instanceof DeclareErrorOrWarning) { - DeclareErrorOrWarning deow = (DeclareErrorOrWarning)declare.declare; + if (declare.declareDecl instanceof DeclareErrorOrWarning) { + DeclareErrorOrWarning deow = (DeclareErrorOrWarning)declare.declareDecl; if (deow.isError()) { node.setKind( IProgramElement.Kind.DECLARE_ERROR); @@ -92,21 +92,21 @@ public class AsmElementFormatter { node.setName(name) ; node.setDetails("\"" + genDeclareMessage(deow.getMessage()) + "\""); - } else if (declare.declare instanceof DeclareParents) { + } else if (declare.declareDecl instanceof DeclareParents) { node.setKind( IProgramElement.Kind.DECLARE_PARENTS); - DeclareParents dp = (DeclareParents)declare.declare; + DeclareParents dp = (DeclareParents)declare.declareDecl; node.setName(name + DECLARE_PARENTS); node.setDetails(genTypePatternLabel(dp.getChild())); - } else if (declare.declare instanceof DeclareSoft) { + } else if (declare.declareDecl instanceof DeclareSoft) { node.setKind( IProgramElement.Kind.DECLARE_SOFT); - DeclareSoft ds = (DeclareSoft)declare.declare; + DeclareSoft ds = (DeclareSoft)declare.declareDecl; node.setName(name + DECLARE_SOFT); node.setDetails(genTypePatternLabel(ds.getException())); - } else if (declare.declare instanceof DeclarePrecedence) { + } else if (declare.declareDecl instanceof DeclarePrecedence) { node.setKind( IProgramElement.Kind.DECLARE_PRECEDENCE); - DeclarePrecedence ds = (DeclarePrecedence)declare.declare; + DeclarePrecedence ds = (DeclarePrecedence)declare.declareDecl; node.setName(name + DECLARE_PRECEDENCE); node.setDetails(genPrecedenceListLabel(ds.getPatterns())); |