From a1d8ced910d9f69fa1095731f64b37c26fa768f4 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 13 Aug 2010 15:44:45 +0000 Subject: [PATCH] 322446: mechanism for a concrete aspect to remember the actual effects of any decps it causes to apply --- asm/src/org/aspectj/asm/IProgramElement.java | 5 +++++ asm/src/org/aspectj/asm/internal/ProgramElement.java | 9 +++++++++ 2 files changed, 14 insertions(+) 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> getDeclareParentsMap(); + + public void setDeclareParentsMap(Map> 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> getDeclareParentsMap() { + Map> s = (Map>) kvpairs.get("declareparentsmap"); + return s; + } + + public void setDeclareParentsMap(Map> newmap) { + kvpairs.put("declareparentsmap", newmap); + } } -- 2.39.5