experiments/NoReflectionObject.st
branchdirectory_structure_refactoring
changeset 1818 2e5ed72e7dfd
parent 1206 227911d49c24
child 1880 27b932afa4a7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/experiments/NoReflectionObject.st	Thu Nov 15 22:10:02 2012 +0000
@@ -0,0 +1,135 @@
+"
+ Copyright (c) 2010-2011 Jan Vrany, Jan Kurs & Marcel Hlopko,
+                         SWING Research Group, Czech Technical University 
+                         in Prague
+
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation
+ files (the 'Software'), to deal in the Software without
+ restriction, including without limitation the rights to use,
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following
+ conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ OTHER DEALINGS IN THE SOFTWARE.
+"
+"{ Package: 'stx:libjava/experiments' }"
+
+Object subclass:#NoReflectionObject
+	instanceVariableNames:''
+	classVariableNames:'Instance'
+	poolDictionaries:''
+	category:'Languages-Java-Experiments-Lookup'
+!
+
+!NoReflectionObject class methodsFor:'documentation'!
+
+copyright
+"
+ Copyright (c) 2010-2011 Jan Vrany, Jan Kurs & Marcel Hlopko,
+                         SWING Research Group, Czech Technical University 
+                         in Prague
+
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation
+ files (the 'Software'), to deal in the Software without
+ restriction, including without limitation the rights to use,
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following
+ conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ OTHER DEALINGS IN THE SOFTWARE.
+
+"
+!
+
+documentation
+"
+    Null Object for JavaObjectDictionary - RENAME, the name is stupid!!
+
+    [author:]
+        kursjan
+
+    [instance variables:]
+
+    [class variables:]
+
+    [see also:]
+
+"
+! !
+
+!NoReflectionObject class methodsFor:'instance creation'!
+
+instance
+    Instance ifNil: [ Instance := self basicNew ].
+    ^ Instance.
+
+    "Created: / 09-01-2011 / 21:33:55 / Jan Kurs <kurs.jan@post.cz>"
+!
+
+new
+    ^ self instance.
+
+    "Created: / 09-01-2011 / 21:33:55 / Jan Kurs <kurs.jan@post.cz>"
+! !
+
+!NoReflectionObject methodsFor:'queries'!
+
+ifNil: block
+    ^ block value.
+
+    "Created: / 17-01-2011 / 19:10:24 / kursjan <kursjan@fit.cvut.cz>"
+!
+
+includesBehavior: aClass
+    ^ false.
+
+    "Created: / 09-01-2011 / 21:05:56 / Jan Kurs <kurs.jan@post.cz>"
+!
+
+isNil
+    ^ true
+
+    "Created: / 17-01-2011 / 19:10:11 / kursjan <kursjan@fit.cvut.cz>"
+!
+
+methodDictionary
+    ^ MethodDictionary withAll: Dictionary new.
+
+    "Created: / 17-01-2011 / 10:52:44 / kursjan <kursjan@fit.cvut.cz>"
+!
+
+superclass
+    ^ nil
+
+    "Created: / 17-01-2011 / 10:53:15 / kursjan <kursjan@fit.cvut.cz>"
+! !
+
+!NoReflectionObject class methodsFor:'documentation'!
+
+version_SVN
+    ^ '$Id$'
+! !