4. A Plain Java Object Interpreter¶
In this chapter we start afresh on a third model run-time system
in sub-project rt3
.
We will test a series of ideas that may make it possible
to treat any Java object as a Python object.
Jython 2 achieves this by wrapping objects
that are not instances of some sub-class of PyObject
in a proxy.
We will attempt to do this so that the interpreter (or compiled code)
handles the object directly.
Concepts developed in sub-project rt2
will be heavily re-used.
- 4.1. Introduction
- 4.2. Operations on Built-in Types
- 4.3. Hash, Lookup and Dictionary
- 4.4. Methods on Built-in Types
- 4.4.1. The Visible Classes
- 4.4.2. Relationships amongst the Classes
- 4.4.3. Design Features
- 4.4.4. Annotations identifying Python Methods
- 4.5. Python Modules in Java
- 4.6. Creation and Initialisation