summaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authoraclement <aclement>2009-08-13 17:29:16 +0000
committeraclement <aclement>2009-08-13 17:29:16 +0000
commit447cdc9d31a9e85f754eba3d0b4e461e60dc999d (patch)
treecd68e7024a496a9b6d385dd54defc50ab184086f /asm
parent7f3501bfabd4c8b305ca7b0b750b5a6713b9735b (diff)
downloadaspectj-447cdc9d31a9e85f754eba3d0b4e461e60dc999d.tar.gz
aspectj-447cdc9d31a9e85f754eba3d0b4e461e60dc999d.zip
286539: test and fix (decanno type in model)
Diffstat (limited to 'asm')
-rw-r--r--asm/src/org/aspectj/asm/IProgramElement.java10
-rw-r--r--asm/src/org/aspectj/asm/internal/ProgramElement.java17
2 files changed, 27 insertions, 0 deletions
diff --git a/asm/src/org/aspectj/asm/IProgramElement.java b/asm/src/org/aspectj/asm/IProgramElement.java
index b51fd1731..a3a236b6b 100644
--- a/asm/src/org/aspectj/asm/IProgramElement.java
+++ b/asm/src/org/aspectj/asm/IProgramElement.java
@@ -403,4 +403,14 @@ public interface IProgramElement extends Serializable {
public void setAnnotationStyleDeclaration(boolean b);
public boolean isAnnotationStyleDeclaration();
+
+ /**
+ * @param fullyQualifiedannotationType the annotation type, eg. p.q.r.Foo
+ */
+ public void setAnnotationType(String fullyQualifiedannotationType);
+
+ /**
+ * @return the fully qualified annotation type, eg. p.q.r.Foo
+ */
+ public String getAnnotationType();
} \ No newline at end of file
diff --git a/asm/src/org/aspectj/asm/internal/ProgramElement.java b/asm/src/org/aspectj/asm/internal/ProgramElement.java
index 57f2fc31f..e9e6a9fb2 100644
--- a/asm/src/org/aspectj/asm/internal/ProgramElement.java
+++ b/asm/src/org/aspectj/asm/internal/ProgramElement.java
@@ -356,6 +356,23 @@ public class ProgramElement implements IProgramElement {
return (List) (kvpairs == null ? null : kvpairs.get("parentTypes"));
}
+ /**
+ * {@inheritDoc}
+ */
+ public void setAnnotationType(String fullyQualifiedAnnotationType) {
+ if (kvpairs == Collections.EMPTY_MAP) {
+ kvpairs = new HashMap();
+ }
+ kvpairs.put("annotationType", fullyQualifiedAnnotationType);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getAnnotationType() {
+ return (String) (kvpairs == null ? null : kvpairs.get("annotationType"));
+ }
+
public String getCorrespondingType() {
return getCorrespondingType(false);
}