Top Description Constructors Methods
org.python.core

public abstract Class SequenceIndexDelegate

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
org.python.core.JavaProxyList.ListIndexDelegate, org.python.core.PySequence.DefaultIndexDelegate
Imports
java.io.Serializable

Handles all the index checking and manipulation for get, set and del operations on a sequence.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private int
checkIdx(int idx)

public void
public PyObject
public PyObject
public PyObject
public void
public void
checkIdxAndSetItem(int idx, PyObject value)

public void
public abstract void
delItem(int idx)

public abstract void
delItems(int start, int stop)

protected void
delSlice(int[]
containing [start, stop, step, count] of the slice to delete
indices
)

Implement the deletion of a slice.

pack-priv int
fixindex(int index)

public abstract PyObject
getItem(int idx)

public abstract PyObject
getSlice(int start, int stop, int step)

public PyObject
public abstract String
public abstract int
len()

public abstract void
setItem(int idx, PyObject value)

public abstract void
setSlice(int start, int stop, int step, PyObject value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SequenceIndexDelegateback to summary
public SequenceIndexDelegate()

Method Detail

checkIdxback to summary
private int checkIdx(int idx)
checkIdxAndDelItemback to summary
public void checkIdxAndDelItem(PyObject idx)
checkIdxAndFindItemback to summary
public PyObject checkIdxAndFindItem(PyObject idx)
checkIdxAndFindItemback to summary
public PyObject checkIdxAndFindItem(int idx)
checkIdxAndGetItemback to summary
public PyObject checkIdxAndGetItem(PyObject idx)
checkIdxAndSetItemback to summary
public void checkIdxAndSetItem(PyObject idx, PyObject value)
checkIdxAndSetItemback to summary
public void checkIdxAndSetItem(int idx, PyObject value)
checkIdxAndSetSliceback to summary
public void checkIdxAndSetSlice(PySlice slice, PyObject value)
delItemback to summary
public abstract void delItem(int idx)
delItemsback to summary
public abstract void delItems(int start, int stop)
delSliceback to summary
protected void delSlice(int[] indices)

Implement the deletion of a slice. This method is called by checkIdxAndDelItem(PyObject) when the argument is a PySlice. The argument is the return from PySlice#indicesEx(int).

Parameters
indices:int[]

containing [start, stop, step, count] of the slice to delete

fixindexback to summary
pack-priv int fixindex(int index)
getItemback to summary
public abstract PyObject getItem(int idx)
getSliceback to summary
public abstract PyObject getSlice(int start, int stop, int step)
getSliceback to summary
public PyObject getSlice(PySlice slice)
getTypeNameback to summary
public abstract String getTypeName()
lenback to summary
public abstract int len()
setItemback to summary
public abstract void setItem(int idx, PyObject value)
setSliceback to summary
public abstract void setSlice(int start, int stop, int step, PyObject value)