cz.cuni.pogamut.introspection.python
Class PythonInstrospectableProxy

java.lang.Object
  extended by cz.cuni.pogamut.introspection.DefaultIntrospectableProxy<java.lang.Object>
      extended by cz.cuni.pogamut.introspection.python.PythonInstrospectableProxy
All Implemented Interfaces:
IntrospectableProxy

public class PythonInstrospectableProxy
extends DefaultIntrospectableProxy<java.lang.Object>


Field Summary
private  PyObjectAdapter adapter
           
 
Constructor Summary
PythonInstrospectableProxy(PyObjectAdapter adapter)
           
PythonInstrospectableProxy(java.lang.String name, PyObjectPlace place)
           
 
Method Summary
 void closeIntrospection()
          This should clean up any bindings the IntrospectableProxy might have with the object it introspects to allow GC collect the object.
protected  IntrospectableProxy[] computeChildren(java.lang.Object object)
          Computes list of introspectable children of object to be introspected.
protected  Property[] computeProperties(java.lang.Object object)
          Computes list of properties of object to be introspected.
protected  java.util.ArrayList<PyObjectAdapter> filterObject(java.lang.Object object, boolean hasChildren)
          Filters children of the proxy according to 'hasChildren' parameter.
 java.lang.String getName()
          Returns getProxiedObject().toString(); It is strongly recomended to override this method.
 
Methods inherited from class cz.cuni.pogamut.introspection.DefaultIntrospectableProxy
getChildren, getProperties, getProxiedObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

adapter

private PyObjectAdapter adapter
Constructor Detail

PythonInstrospectableProxy

public PythonInstrospectableProxy(java.lang.String name,
                                  PyObjectPlace place)

PythonInstrospectableProxy

public PythonInstrospectableProxy(PyObjectAdapter adapter)
Method Detail

getName

public java.lang.String getName()
Description copied from class: DefaultIntrospectableProxy
Returns getProxiedObject().toString(); It is strongly recomended to override this method.

Specified by:
getName in interface IntrospectableProxy
Overrides:
getName in class DefaultIntrospectableProxy<java.lang.Object>
Returns:
getProxiedObject().toString();

filterObject

protected java.util.ArrayList<PyObjectAdapter> filterObject(java.lang.Object object,
                                                            boolean hasChildren)
Filters children of the proxy according to 'hasChildren' parameter.

Parameters:
object -
hasChildren - true = return only items with children, false = opposite
Returns:
return list of wrappers who can or can't have children

computeChildren

protected IntrospectableProxy[] computeChildren(java.lang.Object object)
Description copied from class: DefaultIntrospectableProxy
Computes list of introspectable children of object to be introspected.

Specified by:
computeChildren in class DefaultIntrospectableProxy<java.lang.Object>
Parameters:
object - Object to be introspected.
Returns:
Array of introspectable children.

computeProperties

protected Property[] computeProperties(java.lang.Object object)
Description copied from class: DefaultIntrospectableProxy
Computes list of properties of object to be introspected.

Specified by:
computeProperties in class DefaultIntrospectableProxy<java.lang.Object>
Parameters:
object - Object to be introspected.
Returns:
Array of properties.

closeIntrospection

public void closeIntrospection()
Description copied from interface: IntrospectableProxy
This should clean up any bindings the IntrospectableProxy might have with the object it introspects to allow GC collect the object.