|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.python.core.adapter.ExtensiblePyObjectAdapter
public class ExtensiblePyObjectAdapter
A PyObjectAdapter attempts to adapt a Java Object with three user fillable groups of adapters: preClass, class and postClass.
| Constructor Summary | |
|---|---|
ExtensiblePyObjectAdapter()
|
|
| Method Summary | |
|---|---|
PyObject |
adapt(Object o)
Attempts to adapt o using the preClass, class and postClass adapters. |
void |
add(ClassAdapter adapter)
Adds a Class handling adapter that will adapt any objects of its Class if that object hasn't already been handled by one of the pre class adapters. |
void |
addPostClass(PyObjectAdapter converter)
Adds an adapter to the list of adapters to be tried after the ClassAdapters. |
void |
addPreClass(PyObjectAdapter adapter)
Adds an adapter to the list of adapters to be tried before the ClassAdapters. |
boolean |
canAdapt(Object o)
Returns true if o can be adapted by this adapter. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtensiblePyObjectAdapter()
| Method Detail |
|---|
public boolean canAdapt(Object o)
PyObjectAdapter
canAdapt in interface PyObjectAdapterpublic PyObject adapt(Object o)
adapt in interface PyObjectAdapterpublic void addPreClass(PyObjectAdapter adapter)
public void add(ClassAdapter adapter)
public void addPostClass(PyObjectAdapter converter)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||