Method Summary |
|
public PyObject | __abs__() Equivalent to the standard Python __abs__ method. |
public PyObject | __add__(PyObject other) Equivalent to the standard Python __add__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __and__(PyObject other) Equivalent to the standard Python __and__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __call__(PyObject args, String keywords) The basic method to override when implementing a callable object.
The first len(args)-len(keywords) members of args[] are plain
arguments. |
public PyObject | __call__(PyObject arg1, PyObject args, String keywords) A variant of the __call__ method with one extra initial argument.
This variant is used to allow method invocations to be performed
efficiently.
The default behavior is to invoke __call__(args,
keywords) with the appropriate arguments. |
public PyObject | __call__(PyObject args) A variant of the __call__ method when no keywords are passed. |
public PyObject | __call__() A variant of the __call__ method with no arguments. |
public PyObject | __call__(PyObject arg0) A variant of the __call__ method with one argument. |
public PyObject | __call__(PyObject arg0, PyObject arg1) A variant of the __call__ method with two arguments. |
public PyObject | __call__(PyObject arg0, PyObject arg1, PyObject arg2) A variant of the __call__ method with three arguments. |
public PyObject | __call__(PyObject arg0, PyObject arg1, PyObject arg2, PyObject arg3) A variant of the __call__ method with four arguments. |
public int | __cmp__(PyObject other) Equivalent to the standard Python __cmp__ method.
Parameters: other - the object to compare this with. |
final public PyObject | __coerce__(PyObject pyo) Equivalent to the standard Python __coerce__ method.
This method can not be overridden.
To implement __coerce__ functionality, override __coerce_ex__ instead.
Parameters: pyo - the other object involved in the coercion. |
public Object | __coerce_ex__(PyObject o) |
public PyComplex | __complex__() Equivalent to the standard Python __complex__ method. |
public boolean | __contains__(PyObject o) Equivalent to the standard Python __contains__ method.
Parameters: o - the element to search for in this container. |
final public void | __delattr__(PyString name) Equivalent to the standard Python __delattr__ method. |
public void | __delattr__(String name) A variant of the __delattr__ method which accepts a String
as the key. |
public void | __delete__(PyObject obj) |
public void | __delitem__(PyObject key) Equivalent to the standard Python __delitem__ method. |
public void | __delitem__(String key) A variant of the __delitem__ method which accepts a String
as the key. |
public void | __delslice__(PyObject s_start, PyObject s_stop, PyObject s_step) |
public void | __delslice__(PyObject start, PyObject stop) |
public PyObject | __dir__() Equivalent to the standard Python __dir__ method. |
public PyObject | __div__(PyObject other) Equivalent to the standard Python __div__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __divmod__(PyObject other) Equivalent to the standard Python __divmod__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __eq__(PyObject other) Equivalent to the standard Python __eq__ method.
Parameters: other - the object to compare this with. |
final public PyObject | __findattr__(PyString name) Very similar to the standard Python __getattr__ method. |
public PyObject | __findattr__(String name) A variant of the __findattr__ method which accepts a Java
String as the name.
Warning: name must be an interned string!
Parameters: name - the name to lookup in this namespace must be an interned string . |
public PyObject | __finditem__(PyObject key) Very similar to the standard Python __getitem__ method. |
public PyObject | __finditem__(int key) A variant of the __finditem__ method which accepts a primitive
int as the key. |
public PyObject | __finditem__(String key) A variant of the __finditem__ method which accepts a Java
String as the key. |
public PyFloat | __float__() Equivalent to the standard Python __float__ method. |
public PyObject | __floordiv__(PyObject other) Equivalent to the standard Python __floordiv__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __ge__(PyObject other) Equivalent to the standard Python __ge__ method.
Parameters: other - the object to compare this with. |
public PyObject | __get__(PyObject obj, PyObject type) |
final public PyObject | __getattr__(PyString name) Equivalent to the standard Python __getattr__ method. |
final public PyObject | __getattr__(String name) A variant of the __getattr__ method which accepts a Java
String as the name.
This method can not be overridden.
Override the __findattr__ method instead.
Warning: name must be an interned string!!!!!!!!
Parameters: name - the name to lookup in this namespace must be an interned string . |
public PyObject | __getitem__(int key) Equivalent to the standard Python __getitem__ method.
This variant takes a primitive int as the key.
This method should not be overridden.
Override the __finditem__ method instead.
Parameters: key - the key to lookup in this container. |
public PyObject | __getitem__(PyObject key) Equivalent to the standard Python __getitem__ method.
This method should not be overridden.
Override the __finditem__ method instead.
Parameters: key - the key to lookup in this container. |
public PyTuple | __getnewargs__() |
public PyObject | __getslice__(PyObject s_start, PyObject s_stop, PyObject s_step) |
public PyObject | __getslice__(PyObject start, PyObject stop) |
public PyObject | __gt__(PyObject other) Equivalent to the standard Python __gt__ method.
Parameters: other - the object to compare this with. |
final public PyInteger | __hash__() Equivalent to the standard Python __hash__ method. |
public PyString | __hex__() Equivalent to the standard Python __hex__ method
Should only be overridden by numeric objects that can be
reasonably represented as a hexadecimal string. |
public PyObject | __iadd__(PyObject other) Equivalent to the standard Python __iadd__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __iand__(PyObject other) Equivalent to the standard Python __iand__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __idiv__(PyObject other) Equivalent to the standard Python __idiv__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __idivmod__(PyObject other) Equivalent to the standard Python __idivmod__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __ifloordiv__(PyObject other) Equivalent to the standard Python __ifloordiv__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __ilshift__(PyObject other) Equivalent to the standard Python __ilshift__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __imod__(PyObject other) Equivalent to the standard Python __imod__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __imul__(PyObject other) Equivalent to the standard Python __imul__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __int__() Equivalent to the standard Python __int__ method. |
public PyObject | __invert__() Equivalent to the standard Python __invert__ method. |
public PyObject | __ior__(PyObject other) Equivalent to the standard Python __ior__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __ipow__(PyObject other) Equivalent to the standard Python __ipow__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __irshift__(PyObject other) Equivalent to the standard Python __irshift__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __isub__(PyObject other) Equivalent to the standard Python __isub__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __iter__() Return an iterator that is used to iterate the element of this
sequence. |
public PyObject | __iternext__() Return the next element of the sequence that this is an iterator
for. |
public PyObject | __itruediv__(PyObject other) Equivalent to the standard Python __itruediv__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __ixor__(PyObject other) Equivalent to the standard Python __ixor__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __le__(PyObject other) Equivalent to the standard Python __le__ method.
Parameters: other - the object to compare this with. |
public int | __len__() Equivalent to the standard Python __len__ method. |
public PyLong | __long__() Equivalent to the standard Python __long__ method. |
public PyObject | __lshift__(PyObject other) Equivalent to the standard Python __lshift__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __lt__(PyObject other) Equivalent to the standard Python __lt__ method.
Parameters: other - the object to compare this with. |
public PyObject | __mod__(PyObject other) Equivalent to the standard Python __mod__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __mul__(PyObject other) Equivalent to the standard Python __mul__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __ne__(PyObject other) Equivalent to the standard Python __ne__ method.
Parameters: other - the object to compare this with. |
public PyObject | __neg__() Equivalent to the standard Python __neg__ method. |
public boolean | __nonzero__() Equivalent to the standard Python __nonzero__ method. |
public PyObject | __not__() |
public PyString | __oct__() Equivalent to the standard Python __oct__ method. |
public PyObject | __or__(PyObject other) Equivalent to the standard Python __or__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __pos__() Equivalent to the standard Python __pos__ method. |
public PyObject | __pow__(PyObject o2, PyObject o3) Implements the three argument power function. |
public PyObject | __pow__(PyObject other) Equivalent to the standard Python __pow__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __radd__(PyObject other) Equivalent to the standard Python __radd__ method
Parameters: other - the object to perform this binary operation with(the left-hand operand). |
public PyObject | __rand__(PyObject other) Equivalent to the standard Python __rand__ method
Parameters: other - the object to perform this binary operation with(the left-hand operand). |
protected void | __rawdir__(PyDictionary accum) |
public PyObject | __rdiv__(PyObject other) Equivalent to the standard Python __rdiv__ method
Parameters: other - the object to perform this binary operation with(the left-hand operand). |
public PyObject | __rdivmod__(PyObject other) Equivalent to the standard Python __rdivmod__ method
Parameters: other - the object to perform this binary operation with(the left-hand operand). |
public PyObject | __reduce__() Used for pickling. |
public PyString | __repr__() Equivalent to the standard Python __repr__ method. |
public PyObject | __rfloordiv__(PyObject other) Equivalent to the standard Python __rfloordiv__ method
Parameters: other - the object to perform this binary operation with(the left-hand operand). |
public PyObject | __rlshift__(PyObject other) Equivalent to the standard Python __rlshift__ method
Parameters: other - the object to perform this binary operation with(the left-hand operand). |
public PyObject | __rmod__(PyObject other) Equivalent to the standard Python __rmod__ method
Parameters: other - the object to perform this binary operation with(the left-hand operand). |
public PyObject | __rmul__(PyObject other) Equivalent to the standard Python __rmul__ method
Parameters: other - the object to perform this binary operation with(the left-hand operand). |
public PyObject | __ror__(PyObject other) Equivalent to the standard Python __ror__ method
Parameters: other - the object to perform this binary operation with(the left-hand operand). |
public PyObject | __rpow__(PyObject other) Equivalent to the standard Python __rpow__ method
Parameters: other - the object to perform this binary operation with(the left-hand operand). |
public PyObject | __rrshift__(PyObject other) Equivalent to the standard Python __rrshift__ method
Parameters: other - the object to perform this binary operation with(the left-hand operand). |
public PyObject | __rshift__(PyObject other) Equivalent to the standard Python __rshift__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyObject | __rsub__(PyObject other) Equivalent to the standard Python __rsub__ method
Parameters: other - the object to perform this binary operation with(the left-hand operand). |
public PyObject | __rtruediv__(PyObject other) Equivalent to the standard Python __rtruediv__ method
Parameters: other - the object to perform this binary operation with(the left-hand operand). |
public PyObject | __rxor__(PyObject other) Equivalent to the standard Python __rxor__ method
Parameters: other - the object to perform this binary operation with(the left-hand operand). |
public void | __set__(PyObject obj, PyObject value) |
final public void | __setattr__(PyString name, PyObject value) Equivalent to the standard Python __setattr__ method. |
public void | __setattr__(String name, PyObject value) A variant of the __setattr__ method which accepts a String
as the key. |
public void | __setitem__(PyObject key, PyObject value) Equivalent to the standard Python __setitem__ method. |
public void | __setitem__(String key, PyObject value) A variant of the __setitem__ method which accepts a String
as the key. |
public void | __setitem__(int key, PyObject value) A variant of the __setitem__ method which accepts a primitive
int as the key. |
public void | __setslice__(PyObject s_start, PyObject s_stop, PyObject s_step, PyObject value) |
public void | __setslice__(PyObject start, PyObject stop, PyObject value) |
public PyString | __str__() Equivalent to the standard Python __str__ method. |
public PyObject | __sub__(PyObject other) Equivalent to the standard Python __sub__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public Object | __tojava__(Class c) Equivalent to the Jython __tojava__ method. |
public PyObject | __truediv__(PyObject other) Equivalent to the standard Python __truediv__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
public PyUnicode | __unicode__() |
public PyObject | __xor__(PyObject other) Equivalent to the standard Python __xor__ method
Parameters: other - the object to perform this binary operation with(the right-hand operand). |
final public PyObject | _add(PyObject o2) Implements the Python expression this + o2
Parameters: o2 - the object to perform this binary operation with. |
final public PyObject | _and(PyObject o2) Implements the Python expression this & o2
Parameters: o2 - the object to perform this binary operation with. |
final PyObject | _basic_add(PyObject o2) Implements the Python expression this + o2
when this and o2 have the same type or are builtin types.
Parameters: o2 - the object to perform this binary operation with. |
final PyObject | _basic_and(PyObject o2) Implements the Python expression this & o2
when this and o2 have the same type or are builtin types.
Parameters: o2 - the object to perform this binary operation with. |
final PyObject | _basic_div(PyObject o2) Implements the Python expression this / o2
when this and o2 have the same type or are builtin types.
Parameters: o2 - the object to perform this binary operation with. |
final PyObject | _basic_divmod(PyObject o2) Implements the Python expression this divmod o2
when this and o2 have the same type or are builtin types.
Parameters: o2 - the object to perform this binary operation with. |
final PyObject | _basic_floordiv(PyObject o2) Implements the Python expression this // o2
when this and o2 have the same type or are builtin types.
Parameters: o2 - the object to perform this binary operation with. |
final PyObject | _basic_lshift(PyObject o2) Implements the Python expression this << o2
when this and o2 have the same type or are builtin types.
Parameters: o2 - the object to perform this binary operation with. |
final PyObject | _basic_mod(PyObject o2) Implements the Python expression this % o2
when this and o2 have the same type or are builtin types.
Parameters: o2 - the object to perform this binary operation with. |
final PyObject | _basic_mul(PyObject o2) Implements the Python expression this * o2
when this and o2 have the same type or are builtin types.
Parameters: o2 - the object to perform this binary operation with. |
final PyObject | _basic_or(PyObject o2) Implements the Python expression this | o2
when this and o2 have the same type or are builtin types.
Parameters: o2 - the object to perform this binary operation with. |
final PyObject | _basic_pow(PyObject o2) Implements the Python expression this ** o2
when this and o2 have the same type or are builtin types.
Parameters: o2 - the object to perform this binary operation with. |
final PyObject | _basic_rshift(PyObject o2) Implements the Python expression this >> o2
when this and o2 have the same type or are builtin types.
Parameters: o2 - the object to perform this binary operation with. |
final PyObject | _basic_sub(PyObject o2) Implements the Python expression this - o2
when this and o2 have the same type or are builtin types.
Parameters: o2 - the object to perform this binary operation with. |
final PyObject | _basic_truediv(PyObject o2) Implements the Python expression this / o2
when this and o2 have the same type or are builtin types.
Parameters: o2 - the object to perform this binary operation with. |
final PyObject | _basic_xor(PyObject o2) Implements the Python expression this ^ o2
when this and o2 have the same type or are builtin types.
Parameters: o2 - the object to perform this binary operation with. |
public PyObject | _callextra(PyObject[] args, String[] keywords, PyObject starargs, PyObject kwargs) |
final public int | _cmp(PyObject o) Implements cmp(this, other)
Parameters: o - the object to compare this with. |
PyObject[] | _coerce(PyObject other) |
final public PyObject | _div(PyObject o2) Implements the Python expression this / o2
Parameters: o2 - the object to perform this binary operation with. |
final public PyObject | _divmod(PyObject o2) Implements the Python expression this divmod o2
Parameters: o2 - the object to perform this binary operation with. |
public PyObject | _doget(PyObject container) |
public PyObject | _doget(PyObject container, PyObject wherefound) |
public boolean | _doset(PyObject container, PyObject value) |
final public PyObject | _eq(PyObject o) Implements the Python expression this == other .
Parameters: o - the object to compare this with. |
final public PyObject | _floordiv(PyObject o2) Implements the Python expression this // o2
Parameters: o2 - the object to perform this binary operation with. |
final public PyObject | _ge(PyObject o) Implements the Python expression this >= other .
Parameters: o - the object to compare this with. |
final public PyObject | _gt(PyObject o) Implements the Python expression this > other .
Parameters: o - the object to compare this with. |
final public PyObject | _in(PyObject o) Implements in operator.
Parameters: o - the container to search for this element. |
public PyObject | _is(PyObject o) Implements is operator.
Parameters: o - the object to compare this with. |
public PyObject | _isnot(PyObject o) Implements is not operator.
Parameters: o - the object to compare this with. |
public PyObject | _jcall(Object[] args) |
public PyObject | _jcallexc(Object[] args) A convenience function for PyProxy's. |
public void | _jthrow(Throwable t) |
final public PyObject | _le(PyObject o) Implements the Python expression this <= other .
Parameters: o - the object to compare this with. |
final public PyObject | _lshift(PyObject o2) Implements the Python expression this << o2
Parameters: o2 - the object to perform this binary operation with. |
final public PyObject | _lt(PyObject o) Implements the Python expression this < other .
Parameters: o - the object to compare this with. |
final public PyObject | _mod(PyObject o2) Implements the Python expression this % o2
Parameters: o2 - the object to perform this binary operation with. |
final public PyObject | _mul(PyObject o2) Implements the Python expression this * o2
Parameters: o2 - the object to perform this binary operation with. |
final public PyObject | _ne(PyObject o) Implements the Python expression this != other .
Parameters: o - the object to compare this with. |
final public PyObject | _notin(PyObject o) Implements not in operator.
Parameters: o - the container to search for this element. |
final public PyObject | _or(PyObject o2) Implements the Python expression this | o2
Parameters: o2 - the object to perform this binary operation with. |
final public PyObject | _pow(PyObject o2) Implements the Python expression this ** o2
Parameters: o2 - the object to perform this binary operation with. |
final public PyObject | _rshift(PyObject o2) Implements the Python expression this >> o2
Parameters: o2 - the object to perform this binary operation with. |
final public PyObject | _sub(PyObject o2) Implements the Python expression this - o2
Parameters: o2 - the object to perform this binary operation with. |
final public PyObject | _truediv(PyObject o2) Implements the Python expression this / o2
Parameters: o2 - the object to perform this binary operation with. |
final protected String | _unsupportedop(String op, PyObject o2) Parameters: op - the String form of the op (e.g. |
final public PyObject | _xor(PyObject o2) Implements the Python expression this ^ o2
Parameters: o2 - the object to perform this binary operation with. |
protected void | addKeys(PyDictionary accum, String attr) |
public int | asInt(int index) |
public long | asLong(int index) |
public String | asName(int index) |
public String | asString(int index) |
public String | asStringOrNull(int index) |
public void | delDict() |
public void | delType() |
public void | dispatch__init__(PyType type, PyObject[] args, String[] keywords) |
public boolean | equals(Object ob_other) Should almost never be overridden. |
public PyObject | fastGetClass() |
public PyObject | fastGetDict() |
public PyObject | getDict() |
public PyObject | getDoc() |
public PyType | getType() |
public int | hashCode() |
protected PyObject | impAttr(String name) |
public boolean | implementsDescrDelete() |
public boolean | implementsDescrSet() |
public PyObject | invoke(String name, PyObject[] args, String[] keywords) Shortcut for calling a method on a PyObject from Java.
This form is equivalent to o.__getattr__(name).__call__(args, keywords)
Parameters: name - the name of the method to call. |
public PyObject | invoke(String name, PyObject[] args) |
public PyObject | invoke(String name) Shortcut for calling a method on a PyObject with no args.
Parameters: name - the name of the method to call. |
public PyObject | invoke(String name, PyObject arg1) Shortcut for calling a method on a PyObject with one arg.
Parameters: name - the name of the method to call. |
public PyObject | invoke(String name, PyObject arg1, PyObject arg2) Shortcut for calling a method on a PyObject with two args.
Parameters: name - the name of the method to call. |
public boolean | isCallable() |
public boolean | isDataDescr() |
public boolean | isMappingType() |
public boolean | isNumberType() |
public boolean | isSequenceType() |
boolean | jdontdel() |
boolean | jtryset(PyObject container, PyObject value) |
public void | noAttributeError(String name) |
final boolean | object___contains__(PyObject o) |
final void | object___delattr__(String name) |
final PyObject | object___findattr__(String name) |
final PyObject | object___reduce__() |
final void | object___setattr__(String name, PyObject value) |
final int | object_hashCode() |
final void | object_init(PyObject[] args, String[] keywords) |
final String | object_toString() |
public void | readonlyAttributeError(String name) |
protected String | runsupportedopMessage(String op, PyObject o2) Should return an error message suitable for substitution where. |
public String | safeRepr() |
public void | setDict(PyObject newDict) |
public void | setType(PyType type) |
public String | toString() |
public static void | typeSetup(PyObject dict, PyType.Newstyle marker) |
protected String | unsupportedopMessage(String op, PyObject o2) Should return an error message suitable for substitution where. |