| Implements the algorithm originally used in
Py.java2py to adapt objects.
Pre-class adapters are added to handle instances of PyObject, PyProxy and
null values. Class adapters are added to handle builtin Java classes: String,
Integer, Float, Double, Byte, Long, Short, Character, Class and Boolean. An
adapter is added to the post-class adapters to handle wrapping arrays
properly. Finally, if all of the added adapters can handle an object, it's
wrapped in a PyJavaInstance.
|