Top Description Methods
org.python.core.adapter

public Interface PyObjectAdapter

Known Direct Implementers
org.python.core.adapter.ClassAdapter, org.python.core.adapter.ExtensiblePyObjectAdapter
Imports
org.python.core.PyObject

PyObjectAdapters turn Java Objects into PyObjects.

Method Summary

Modifier and TypeMethod and Description
public PyObject
adapt(Object o)

Returns the PyObject version of o or null if canAdapt(o) returns false.

public boolean
canAdapt(Object o)

Returns true if o can be adapted by this adapter.

Method Detail

adaptback to summary
public PyObject adapt(Object o)

Returns the PyObject version of o or null if canAdapt(o) returns false.

canAdaptback to summary
public boolean canAdapt(Object o)

Returns true if o can be adapted by this adapter.