| Modifier and Type | Class and Description |
|---|---|
| public class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final CType. | |
| pack-priv final MemoryOp | |
| pack-priv final CType | |
| protected final SequenceIndexDelegate | |
| public static final PyType |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | __delitem__(PyObject
the key to be removed from the container key)Overrides org. Equivalent to the standard Python __delitem__ method. |
| public PyObject | __finditem__(int
the key to lookup in this sequence. index)Overrides org. A variant of the __finditem__ method which accepts a primitive |
| public PyObject | __getitem__(PyObject
the key to lookup in this container. index)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__(int
the key whose value will be set index, PyObject the value to set this key to value)Overrides org. A variant of the __setitem__ method which accepts a primitive |
| public void | __setitem__(PyObject
the key whose value will be set index, PyObject the value to set this key to value)Overrides org. Equivalent to the standard Python __setitem__ method. |
| public static PyObject | |
| public static final PyObject | |
| pack-priv static final CType. | |
| public final DirectMemory | |
| protected final void | |
| public boolean | refersDirectlyTo(PyObject ob)
Overrides org. Implements org. Optional operation. |
| public int | traverse(Visitproc visit, Object arg)
Overrides org. Implements org. Traverses all directly contained |
| arrayType | back to summary |
|---|---|
| pack-priv final CType. | |
| componentMemoryOp | back to summary |
|---|---|
| pack-priv final MemoryOp componentMemoryOp | |
| componentType | back to summary |
|---|---|
| pack-priv final CType componentType | |
| delegator | back to summary |
|---|---|
| protected final SequenceIndexDelegate delegator | |
| TYPE | back to summary |
|---|---|
| public static final PyType TYPE | |
| ArrayCData | back to summary |
|---|---|
| pack-priv ArrayCData(PyType subtype, CType. | |
| __delitem__ | back to summary |
|---|---|
| public void __delitem__(PyObject key) Overrides org. Doc from org. Equivalent to the standard Python __delitem__ method. | |
| __finditem__ | back to summary |
|---|---|
| public PyObject __finditem__(int index) Overrides org. Doc from org. A variant of the __finditem__ method which accepts a primitive | |
| __getitem__ | back to summary |
|---|---|
| public PyObject __getitem__(PyObject index) 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__(int index, PyObject value) Overrides org. Doc from org. A variant of the __setitem__ method which accepts a primitive
| |
| __setitem__ | back to summary |
|---|---|
| public void __setitem__(PyObject index, PyObject value) Overrides org. Doc from org. Equivalent to the standard Python __setitem__ method. | |
| ArrayCData_new | back to summary |
|---|---|
public static PyObject ArrayCData_new(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)
| |
| from_address | back to summary |
|---|---|
public static final PyObject from_address(PyType subtype, PyObject address)
| |
| getArrayType | back to summary |
|---|---|
| pack-priv static final CType. | |
| getMemory | back to summary |
|---|---|
| public final DirectMemory getMemory() Implements org. | |
| initReferenceMemory | back to summary |
|---|---|
| protected final void initReferenceMemory(Memory m) Implements abstract org. | |
| 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
| |
| traverse | back to summary |
|---|---|
| public int traverse(Visitproc visit, Object arg) Overrides org. Implements org. Doc from org. Traverses all directly contained
| |
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| 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. |
| index | back to summary |
|---|---|
| private int index | |
| ArrayIter | back to summary |
|---|---|
| public ArrayIter() | |
| __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. | |