diff options
author | aclement <aclement> | 2010-08-13 15:44:45 +0000 |
---|---|---|
committer | aclement <aclement> | 2010-08-13 15:44:45 +0000 |
commit | a1d8ced910d9f69fa1095731f64b37c26fa768f4 (patch) | |
tree | bdf63333a7381ad95bf1a96755ab270d6e7f2f5f /asm | |
parent | 4c3d4d6f69bed5bb16f4ff3effc8675c257a188c (diff) | |
download | aspectj-a1d8ced910d9f69fa1095731f64b37c26fa768f4.tar.gz aspectj-a1d8ced910d9f69fa1095731f64b37c26fa768f4.zip |
322446: mechanism for a concrete aspect to remember the actual effects of any decps it causes to apply
Diffstat (limited to 'asm')
-rw-r--r-- | asm/src/org/aspectj/asm/IProgramElement.java | 5 | ||||
-rw-r--r-- | asm/src/org/aspectj/asm/internal/ProgramElement.java | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/asm/src/org/aspectj/asm/IProgramElement.java b/asm/src/org/aspectj/asm/IProgramElement.java index 180e6e693..ccf59247f 100644 --- a/asm/src/org/aspectj/asm/IProgramElement.java +++ b/asm/src/org/aspectj/asm/IProgramElement.java @@ -16,6 +16,7 @@ import java.io.ObjectStreamException; import java.io.Serializable; import java.util.ArrayList; import java.util.List; +import java.util.Map; import org.aspectj.bridge.IMessage; import org.aspectj.bridge.ISourceLocation; @@ -414,4 +415,8 @@ public interface IProgramElement extends Serializable { * @return the fully qualified annotation type, eg. p.q.r.Foo */ public String getAnnotationType(); + + public Map<String, List<String>> getDeclareParentsMap(); + + public void setDeclareParentsMap(Map<String, List<String>> newmap); }
\ 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 1bed76f0e..1462449b7 100644 --- a/asm/src/org/aspectj/asm/internal/ProgramElement.java +++ b/asm/src/org/aspectj/asm/internal/ProgramElement.java @@ -668,4 +668,13 @@ public class ProgramElement implements IProgramElement { kvpairs.put("annotationStyleDeclaration", "true"); } } + + public Map<String, List<String>> getDeclareParentsMap() { + Map<String, List<String>> s = (Map<String, List<String>>) kvpairs.get("declareparentsmap"); + return s; + } + + public void setDeclareParentsMap(Map<String, List<String>> newmap) { + kvpairs.put("declareparentsmap", newmap); + } } |