| Modifier and Type | Class and Description |
|---|---|
| public class |
| Modifier and Type | Field and Description |
|---|---|
| private final ScriptContext | |
| private final ScriptEngine | |
| public static final PyType |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | __contains__(PyObject
the element to search for in this container. obj)Overrides org. Equivalent to the standard Python __contains__ method. |
| public void | __delitem__(PyObject
the key to be removed from the container key)Overrides org. Equivalent to the standard Python __delitem__ method. |
| public void | __delitem__(String
the key who will be removed - must be an interned string . key)Overrides org. A variant of the __delitem__ method which accepts a String as the key. |
| public PyObject | __finditem__(PyObject
the key to lookup in this container key)Overrides org. Very similar to the standard Python __getitem__ method. |
| public PyObject | __finditem__(String
the key to lookup in this sequence - must be an interned string . key)Overrides org. A variant of the __finditem__ method which accepts a Java |
| public PyObject | __getitem__(PyObject
the key to lookup in this container. key)Overrides org. Equivalent to the standard Python __getitem__ method. |
| public PyObject | __iter__()
Overrides org. Return an iterator that is used to iterate the element of this sequence. |
| public void | __setitem__(PyObject
the key whose value will be set key, PyObject the value to set this key to value)Overrides org. Equivalent to the standard Python __setitem__ method. |
| public void | __setitem__(String
the key whose value will be set - must be an interned string . key, PyObject the value to set this key to value)Overrides org. A variant of the __setitem__ method which accepts a String as the key. |
| private PyDictionary | |
| private Map | |
| public PyObject | |
| public PyObject | |
| pack-priv final boolean | |
| pack-priv final PyObject | |
| pack-priv final boolean | |
| public PyObject | |
| pack-priv final PyObject | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| context | back to summary |
|---|---|
| private final ScriptContext context | |
| engine | back to summary |
|---|---|
| private final ScriptEngine engine | |
| TYPE | back to summary |
|---|---|
| public static final PyType TYPE | |
| PyScriptEngineScope | back to summary |
|---|---|
| pack-priv PyScriptEngineScope(ScriptEngine engine, ScriptContext context) | |
| __contains__ | back to summary |
|---|---|
| public boolean __contains__(PyObject obj) Overrides org. Doc from org. Equivalent to the standard Python __contains__ method. | |
| __delitem__ | back to summary |
|---|---|
| public void __delitem__(PyObject key) Overrides org. Doc from org. Equivalent to the standard Python __delitem__ method.
| |
| __delitem__ | back to summary |
|---|---|
| public void __delitem__(String key) Overrides org. Doc from org. A variant of the __delitem__ method which accepts a String as the key. This String must be
interned. By default, this will call | |
| __finditem__ | back to summary |
|---|---|
| public PyObject __finditem__(PyObject key) Overrides org. Doc from org. Very similar to the standard Python __getitem__ method. Instead of throwing a KeyError if the item isn't found, this just returns null. Classes that wish to implement __getitem__ should override this method instead (with the appropriate semantics. | |
| __finditem__ | back to summary |
|---|---|
| public PyObject __finditem__(String key) Overrides org. Doc from org. A variant of the __finditem__ method which accepts a Java Warning key must be an interned string!!!!!!!! | |
| __getitem__ | back to summary |
|---|---|
| public PyObject __getitem__(PyObject key) Overrides org. Doc from org. Equivalent to the standard Python __getitem__ method. This method should not be overridden.
Override the | |
| __iter__ | back to summary |
|---|---|
| public PyObject __iter__() Overrides org. Doc from org. Return an iterator that is used to iterate the element of this sequence. From version 2.2, this method is the primary protocol for looping over sequences. If a PyObject subclass should support iteration based in the __finditem__() method, it must supply an implementation of __iter__() like this:
public PyObject __iter__() {
return new PySequenceIter(this);
}
When iterating over a python sequence from java code, it should be done with code like
this:
for (PyObject item : seq.asIterable()) {
// Do something with item
}
| |
| __setitem__ | back to summary |
|---|---|
| public void __setitem__(PyObject key, PyObject value) Overrides org. Doc from org. Equivalent to the standard Python __setitem__ method. | |
| __setitem__ | back to summary |
|---|---|
| public void __setitem__(String key, PyObject value) Overrides org. Doc from org. A variant of the __setitem__ method which accepts a String as the key. This String must be
interned. By default, this will call
| |
| getDictionary | back to summary |
|---|---|
| private PyDictionary getDictionary() | |
| getMap | back to summary |
|---|---|
| private Map | |
| pyGetContext | back to summary |
|---|---|
public PyObject pyGetContext()
| |
| pyGetEngine | back to summary |
|---|---|
public PyObject pyGetEngine()
| |
| scope___contains__ | back to summary |
|---|---|
pack-priv final boolean scope___contains__(PyObject obj)
| |
| scope_get | back to summary |
|---|---|
pack-priv final PyObject scope_get(PyObject keyObj, PyObject defaultObj)
| |
| scope_has_key | back to summary |
|---|---|
pack-priv final boolean scope_has_key(PyObject key)
| |
| scope_keys | back to summary |
|---|---|
public PyObject scope_keys()
| |
| scope_setdefault | back to summary |
|---|---|
pack-priv final PyObject scope_setdefault(PyObject keyObj, PyObject failObj)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private PyObject | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public PyObject | __iternext__()
Implements abstract org. Return the next element of the sequence that this is an iterator for. |
| public boolean | refersDirectlyTo(PyObject ob)
Overrides org. Implements org. Optional operation. |
| public int | |
| public int | traverse(Visitproc visit, Object arg)
Overrides org. Implements org. Traverses all directly contained |
| _index | back to summary |
|---|---|
| private int _index | |
| _keys | back to summary |
|---|---|
| private PyObject _keys | |
| _size | back to summary |
|---|---|
| private int _size | |
| ScopeIterator | back to summary |
|---|---|
| pack-priv ScopeIterator(PyScriptEngineScope scope) | |
| __iternext__ | back to summary |
|---|---|
| public PyObject __iternext__() Implements abstract org. Doc from org. Return the next element of the sequence that this is an iterator for. Returns null when the end of the sequence is reached.
| |
| refersDirectlyTo | back to summary |
|---|---|
| public boolean refersDirectlyTo(PyObject ob) Overrides org. Implements org. Doc from org. Optional operation.
Should only be implemented if it is more efficient
than calling
| |
| size | back to summary |
|---|---|
| public int size() | |
| traverse | back to summary |
|---|---|
| public int traverse(Visitproc visit, Object arg) Overrides org. Implements org. Doc from org. Traverses all directly contained
| |