From e8f1ad92fc8cdc66e33e5917174aa5512658dba6 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 12 Nov 2009 22:12:59 +0000 Subject: [PATCH] isCacheable method --- .../org/aspectj/weaver/AbstractReferenceTypeDelegate.java | 4 ++++ .../src/org/aspectj/weaver/ReferenceTypeDelegate.java | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/AbstractReferenceTypeDelegate.java b/org.aspectj.matcher/src/org/aspectj/weaver/AbstractReferenceTypeDelegate.java index d7ee73b62..454771cc5 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/AbstractReferenceTypeDelegate.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/AbstractReferenceTypeDelegate.java @@ -41,6 +41,10 @@ public abstract class AbstractReferenceTypeDelegate implements ReferenceTypeDele return !isAspect() && !isInterface(); } + public boolean isCacheable() { + return false; + } + /** * Designed to be overriden by EclipseType to disable collection of shadow mungers during pre-weave compilation phase */ diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceTypeDelegate.java b/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceTypeDelegate.java index 6868a0952..d16e0b364 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceTypeDelegate.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceTypeDelegate.java @@ -115,4 +115,11 @@ public interface ReferenceTypeDelegate { public boolean copySourceContext(); + /** + * TODO Caching of methods besides getDeclaredInterfaces() may also be dependent on this flag - which? + * + * @return true if something the result of getDeclaredInterfaces() can be cached by the caller + */ + public boolean isCacheable(); + } \ No newline at end of file -- 2.39.5