Index: bool.expose =================================================================== --- bool.expose (revision 0) +++ bool.expose (revision 0) @@ -0,0 +1,14 @@ +# setup +type_name: bool +type_class: PyBoolean +# exposed methods +expose_unary: __abs__ __neg__ __pos__ +expose_binary: __and__ __or__ __xor__ +expose_new_immutable: +expose_meth: :b __nonzero__ +expose_meth: __repr__ + return new PyString(self.bool_toString()); +expose_meth: __str__ + return new PyString(self.bool_toString()); +expose_meth: __hash__ + return Py.newInteger(self.bool_hashCode()); Index: README.txt =================================================================== --- README.txt (revision 0) +++ README.txt (revision 0) @@ -0,0 +1,15 @@ +Some classes have generated code to enable their usage within Jython. Each +such file will have a generated section that is created with the gexpose.py +script. For the PyIntger class it is created thus: + + python gexpose.py int.expose ../../jython/src/org/python/core/PyInteger.java + +For each class their is an xxx.expose file describing what should be exposed. + +In addition their is an xxxDerived.java class that is completely generated +with the script gderived.py. For the PyInteger class it is created thus: + + python gderived.py int.derived >../../jython/src/org/python/core/PyIntegerDerived.java + +Note: The above exmples assume that the whole jython trunk is checked out so +that the trunk/sandbox directory is a sibling of the trunk/jython directory. Property changes on: README.txt ___________________________________________________________________ Name: svn:executable + * Index: bool.derived =================================================================== --- bool.derived (revision 0) +++ bool.derived (revision 0) @@ -0,0 +1,4 @@ +base_class: PyBoolean +want_dict: true +ctr: +incl: object