summaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2005-03-10 17:34:32 +0000
committeraclement <aclement>2005-03-10 17:34:32 +0000
commitf34f74dabb4bffc9836231443d048255340ea7e4 (patch)
tree3e6337f63eb3861830b44045b10fd14e0587ae64 /weaver
parent33dcd66fe02a31b28a01ae6a1a3c7f83082c8f97 (diff)
downloadaspectj-f34f74dabb4bffc9836231443d048255340ea7e4.tar.gz
aspectj-f34f74dabb4bffc9836231443d048255340ea7e4.zip
Declare annotation: only declare annotation provides a differing name suffix (at the moment).
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/patterns/Declare.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/Declare.java b/weaver/src/org/aspectj/weaver/patterns/Declare.java
index d5ffff9a1..76b1dd686 100644
--- a/weaver/src/org/aspectj/weaver/patterns/Declare.java
+++ b/weaver/src/org/aspectj/weaver/patterns/Declare.java
@@ -55,4 +55,15 @@ public abstract class Declare extends PatternNode {
* is ultimately inherited by.
*/
public abstract boolean isAdviceLike();
+
+ /**
+ * Declares have methods in the .class file against which info can be stored
+ * (for example, the annotation in the case of declare annotation). The
+ * name is of the form ajc$declare_XXX_NNN where XXX can optionally be set in
+ * this 'getNameSuffix()' method - depending on whether, at weave time, we
+ * want to easily differentiate between the declare methods.
+ */
+ public String getNameSuffix() {
+ return "";
+ }
}