cz.cuni.amis.introspection.python
Class PyStringWrapper
java.lang.Object
cz.cuni.amis.introspection.python.PyObjectWrapper
cz.cuni.amis.introspection.python.PyStringWrapper
public class PyStringWrapper
- extends PyObjectWrapper
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PyStringWrapper
public PyStringWrapper()
getChildren
public ArrayList<PyObjectAdapter> getChildren(Object object)
- Description copied from class:
PyObjectWrapper
- If the PyObject contains children (e.g. List, Instance, Dictionary),
they are returned as list of PyObjectAdapter.
- Specified by:
getChildren in class PyObjectWrapper
- Returns:
- list of PyObjectAdapter if the pyObject contains children (List, Instance, etc.)
hasChildren
public boolean hasChildren(Object pyObject)
- Description copied from class:
PyObjectWrapper
- Whether the wrapper may have children (e.g. List, Instance, Dictionary).
Warning - it does not tells anything about the number of children.
For instance - if it's list which doesn't have any items, it will
still return true.
- Specified by:
hasChildren in class PyObjectWrapper
- Returns:
- true if wrapper can have a child (or more children)
getJavaObject
public Object getJavaObject(Object pyObject)
- Returns String instance of the stored value.
- Specified by:
getJavaObject in class PyObjectWrapper
- Returns:
- Object Java representation of the object
getNewValue
public org.python.core.PyObject getNewValue(Object newValue)
- Returns PyString instance of the value newValue.
NewValue must be of the type String, otherwise
the IllegalCastException will occure.
- Specified by:
getNewValue in class PyObjectWrapper
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.