diff options
author | wisberg <wisberg> | 2003-09-27 01:45:21 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-09-27 01:45:21 +0000 |
commit | 2174193632b4f67a0d72816a7c65ce732138c833 (patch) | |
tree | 712cd7417691e323c41f56a510c9193947559e43 | |
parent | dcedc6e551303e84f54afd1b142d2e5933a86d3a (diff) | |
download | aspectj-2174193632b4f67a0d72816a7c65ce732138c833.tar.gz aspectj-2174193632b4f67a0d72816a7c65ce732138c833.zip |
added pointcut anyCollectionWriteCalls()
-rw-r--r-- | docs/sandbox/common/org/aspectj/langlib/Pointcuts.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/sandbox/common/org/aspectj/langlib/Pointcuts.java b/docs/sandbox/common/org/aspectj/langlib/Pointcuts.java index e42aa0f98..6a07230c1 100644 --- a/docs/sandbox/common/org/aspectj/langlib/Pointcuts.java +++ b/docs/sandbox/common/org/aspectj/langlib/Pointcuts.java @@ -14,6 +14,7 @@ package org.aspectj.langlib; import java.io.*; +import java.util.*; /** * Library of pointcut idioms to use in combination with @@ -141,6 +142,18 @@ public final class Pointcuts { call(Process Runtime.exec(..)) || call(Class ClassLoader.loadClass(..)); + /** Write methods on Collection + * Warning: Does not pick out <code>iterator()</code>, even though + * an Iterator can remove elements. + */ + public pointcut anyCollectionWriteCalls() : + call(boolean Collection+.add(Object)) + || call(boolean Collection+.addAll(Collection)) + || call(void Collection+.clear()) + || call(boolean Collection+.remove(Object)) + || call(boolean Collection+.removeAll(Collection)) + || call(boolean Collection+.retainAll(Collection)); + public pointcut mostThrowableReadCalls() : call(* Throwable+.get*(..)) || call(* Throwable+.print*(..)) |