cz.cuni.amis.introspection.python
Class PythonInstrospectableProxy

Package class diagram package PythonInstrospectableProxy
java.lang.Object
  extended by cz.cuni.amis.introspection.Feature
      extended by cz.cuni.amis.introspection.Folder
          extended by cz.cuni.amis.introspection.AbstractObjectFolder<Object>
              extended by cz.cuni.amis.introspection.python.PythonInstrospectableProxy

public class PythonInstrospectableProxy
extends AbstractObjectFolder<Object>


Field Summary
 
Fields inherited from class cz.cuni.amis.introspection.Feature
name
 
Constructor Summary
PythonInstrospectableProxy(PyObjectAdapter adapter)
           
PythonInstrospectableProxy(String name, PyObjectPlace place)
           
 
Method Summary
 void closeIntrospection()
           
protected  Folder[] computeFolders(Object object)
          Computes list of introspectable children of object to be introspected.
protected  Property[] computeProperties(Object object)
          Computes list of properties of object to be introspected.
protected  ArrayList<PyObjectAdapter> filterObject(Object object, boolean hasChildren)
          Filters children of the proxy according to 'hasChildren' parameter.
 String getName()
           
 
Methods inherited from class cz.cuni.amis.introspection.AbstractObjectFolder
getFolders, getProperties, getProxiedObject
 
Methods inherited from class cz.cuni.amis.introspection.Folder
createProperties, createProperties, getFolder, getProperty, loadFromProperties, loadFromProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PythonInstrospectableProxy

public PythonInstrospectableProxy(String name,
                                  PyObjectPlace place)

PythonInstrospectableProxy

public PythonInstrospectableProxy(PyObjectAdapter adapter)
Method Detail

getName

public String getName()
Overrides:
getName in class Feature

filterObject

protected ArrayList<PyObjectAdapter> filterObject(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

computeFolders

protected Folder[] computeFolders(Object object)
Description copied from class: AbstractObjectFolder
Computes list of introspectable children of object to be introspected.

Specified by:
computeFolders in class AbstractObjectFolder<Object>
Parameters:
object - Object to be introspected.
Returns:
Array of introspectable children.

computeProperties

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

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

closeIntrospection

public void closeIntrospection()


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.