class: Annotation
authorClaus Gittinger <cg@exept.de>
Tue, 25 Feb 2014 13:23:59 +0100
changeset 16134 ac05d3f59821
parent 16133 dc573e06581e
child 16135 5e404aaa931b
class: Annotation added: #allNamed:
Annotation.st
--- a/Annotation.st	Tue Feb 25 11:37:05 2014 +0100
+++ b/Annotation.st	Tue Feb 25 13:23:59 2014 +0100
@@ -194,9 +194,21 @@
     "Created: / 16-07-2010 / 11:31:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
-
+!Annotation class methodsFor:'finding'!
 
-!Annotation class methodsFor:'finding'!
+allNamed:aSymbol
+    "Answer a collection of all pragmas found in all methods of all classes whose keyword is aSymbol."
+        
+    ^ Array streamContents: [ :stream |
+        Smalltalk allClassesDo:[:eachClass |
+            self withPragmasIn: eachClass do: [ :pragma |
+                    pragma keyword = aSymbol
+                        ifTrue: [ stream nextPut: pragma ] ] ] ].
+
+    "
+     Annotation allNamed:'worldMenu'
+    "
+!
 
 allNamed: aSymbol from: aSubClass to: aSuperClass
 	"Answer a collection of all pragmas found in methods of all classes between aSubClass and aSuperClass (inclusive) whose keyword is aSymbol."
@@ -258,7 +270,6 @@
     "Modified: / 20-08-2011 / 21:31:49 / cg"
 ! !
 
-
 !Annotation methodsFor:'accessing'!
 
 arguments
@@ -646,15 +657,16 @@
 !Annotation class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Annotation.st,v 1.14 2012-11-05 23:56:53 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Annotation.st,v 1.15 2014-02-25 12:23:59 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/Annotation.st,v 1.14 2012-11-05 23:56:53 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Annotation.st,v 1.15 2014-02-25 12:23:59 cg Exp $'
 !
 
 version_SVN
-    ^ '§Id: Annotation.st,v 1.1 2011/06/28 11:04:04 vrany Exp §'
+    ^ '$Id: Annotation.st,v 1.15 2014-02-25 12:23:59 cg Exp $'
 ! !
 
+
 Annotation initialize!