From: aclement Date: Thu, 12 Nov 2009 22:12:59 +0000 (+0000) Subject: isCacheable method X-Git-Tag: V1_6_7~96 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e8f1ad92fc8cdc66e33e5917174aa5512658dba6;p=aspectj.git isCacheable method --- 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