org.python.core

Class PyTuple

public class PyTuple extends PySequenceList implements ClassDictInit

A builtin python tuple.
Field Summary
static Classexposed_base
static Stringexposed_name
Constructor Summary
PyTuple()
PyTuple(PyObject[] elements)
PyTuple(PyType subtype, PyObject[] elements)
Method Summary
booleanadd(Object o)
voidadd(int index, Object element)
booleanaddAll(Collection coll)
booleanaddAll(int index, Collection c)
static voidclassDictInit(PyObject dict)
Internal use only.
voidclear()
inthashCode()
Iteratoriterator()
ListIteratorlistIterator()
ListIteratorlistIterator(int index)
booleanremove(Object o)
Objectremove(int index)
booleanremoveAll(Collection coll)
booleanretainAll(Collection coll)
StringsafeRepr()
Objectset(int index, Object element)
ListsubList(int fromIndex, int toIndex)
StringtoString()
static voidtypeSetup(PyObject dict, PyType.Newstyle marker)
PyObject__add__(PyObject generic_other)
PyTuple__getnewargs__()
int__len__()
PyObject__reduce__()
Used for pickling.

Field Detail

exposed_base

public static final Class exposed_base

exposed_name

public static final String exposed_name

Constructor Detail

PyTuple

public PyTuple()

PyTuple

public PyTuple(PyObject[] elements)

PyTuple

public PyTuple(PyType subtype, PyObject[] elements)

Method Detail

add

public boolean add(Object o)

add

public void add(int index, Object element)

addAll

public boolean addAll(Collection coll)

addAll

public boolean addAll(int index, Collection c)

classDictInit

public static void classDictInit(PyObject dict)
Internal use only. Do not call this method explicit.

clear

public void clear()

hashCode

public int hashCode()

iterator

public Iterator iterator()

listIterator

public ListIterator listIterator()

listIterator

public ListIterator listIterator(int index)

remove

public boolean remove(Object o)

remove

public Object remove(int index)

removeAll

public boolean removeAll(Collection coll)

retainAll

public boolean retainAll(Collection coll)

safeRepr

public String safeRepr()

set

public Object set(int index, Object element)

subList

public List subList(int fromIndex, int toIndex)

toString

public String toString()

typeSetup

public static void typeSetup(PyObject dict, PyType.Newstyle marker)

__add__

public PyObject __add__(PyObject generic_other)

__getnewargs__

public PyTuple __getnewargs__()

__len__

public int __len__()

__reduce__

public PyObject __reduce__()
Used for pickling.

Returns: a tuple of (class, tuple)

Jython homepage