Top Fields Constructors Methods
org.python.modules.sre

public Class MatchObject

extends PyObject
implements Traverseproc
Class Inheritance
All Implemented Interfaces
org.python.core.Traverseproc
Imports
org.python.core.*, java.math.BigInteger

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
pack-priv int
pack-priv int[]
pack-priv PatternObject
pack-priv int
public PyObject
public PyString
Inherited from org.python.core.PyObject:
attributesgcMonitorGlobalobjtypeTYPE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PyObject
__findattr_ex__(String key)

Overrides org.python.core.PyObject.__findattr_ex__.

Attribute lookup hook.

pack-priv PyTuple
_pair(int i1, int i2)

public PyObject
end()

public PyObject
end(PyObject index_)

public PyObject
expand(PyObject[] args)

private int
private PyObject
private PyObject
getslice_by_index(int index, PyObject def)

public PyObject
group(PyObject[] args)

public PyObject
groupdict(PyObject[] args, String[] kws)

public PyObject
groups(PyObject[] args, String[] kws)

public boolean
public PyObject
regs()

public PyTuple
span()

public PyTuple
span(PyObject index_)

public PyObject
public PyObject
start(PyObject index_)

public int
traverse(Visitproc visit, Object arg)

Implements org.python.core.Traverseproc.traverse.

Traverses all directly contained PyObjects.

Inherited from org.python.core.PyObject:
__abs____add____and____call____call____call____call____call____call____call____call____call____call____call____call____call____call____call____call____cmp____coerce____coerce_ex____complex____contains____delattr____delattr____delete____delitem____delitem____delslice____delslice____dir____div____divmod____ensure_finalizer____eq____findattr____findattr____finditem____finditem____finditem____float____floordiv____format____ge____get____getattr____getattr____getitem____getitem____getnewargs____getslice____getslice____gt____hash____hex____iadd____iand____idiv____idivmod____ifloordiv____ilshift____imod____imul____index____int____invert____ior____ipow____irshift____isub____iter____iternext____itruediv____ixor____le____len____long____lshift____lt____mod____mul____ne____neg____nonzero____not____oct____or____pos____pow____pow____radd____rand____rawdir____rdiv____rdivmod____reduce____reduce_ex____reduce_ex____repr____rfloordiv____rlshift____rmod____rmul____ror____rpow____rrshift____rshift____rsub____rtruediv____rxor____set____setattr____setattr____setitem____setitem____setitem____setslice____setslice____str____sub____tojava____truediv____trunc____unicode____xor___add_and_callextra_cmp_div_divmod_doget_doget_doset_eq_floordiv_ge_gt_iadd_iand_idiv_idivmod_ifloordiv_ilshift_imod_imul_in_ior_ipow_irshift_is_isnot_isub_itruediv_ixor_jcall_jcallexc_jthrow_le_lshift_lt_mod_mul_ne_notin_or_pow_rshift_sub_truediv_unsupportedop_xoradaptToCoerceTupleasDoubleasIndexasIndexasIntasIntasIterableasLongasLongasNameasNameasStringasStringasStringOrNullasStringOrNullbit_lengthconjugatedelDictdelTypedispatch__init__equalsfastGetClassfastGetDictfinalizegetDictgetJavaProxygetTypehashCodeimpAttrimplementsDescrDeleteimplementsDescrGetimplementsDescrSetinvokeinvokeinvokeinvokeinvokeinvokeisCallableisDataDescrisIndexisIntegerisMappingTypeisNumberTypeisSequenceTypemergeClassDictmergeDictAttrmergeListAttrnoAttributeErrorobject___subclasshook__readonlyAttributeErrorrunsupportedopMessagesetDictsetTypetoStringunsupportedopMessage

Field Detail

endposback to summary
pack-priv int endpos
groupsback to summary
pack-priv int groups
lastindexback to summary
pack-priv int lastindex
markback to summary
pack-priv int[] mark
patternback to summary
pack-priv PatternObject pattern
posback to summary
pack-priv int pos
regsback to summary
public PyObject regs
stringback to summary
public PyString string

Constructor Detail

MatchObjectback to summary
public MatchObject()

Method Detail

__findattr_ex__back to summary
public PyObject __findattr_ex__(String key)

Overrides org.python.core.PyObject.__findattr_ex__.

Doc from org.python.core.PyObject.__findattr_ex__.

Attribute lookup hook. If the attribute is not found, null may be returned or a Py.AttributeError can be thrown, whatever is more correct, efficient and/or convenient for the implementing class. Client code should use __getattr__(String) or __findattr__(String). Both methods have a clear policy for failed lookups.

Returns:PyObject

The looked up value. May return null if the attribute is not found

_pairback to summary
pack-priv PyTuple _pair(int i1, int i2)
endback to summary
public PyObject end()
endback to summary
public PyObject end(PyObject index_)
expandback to summary
public PyObject expand(PyObject[] args)
getindexback to summary
private int getindex(PyObject index)
getsliceback to summary
private PyObject getslice(PyObject index, PyObject def)
getslice_by_indexback to summary
private PyObject getslice_by_index(int index, PyObject def)
groupback to summary
public PyObject group(PyObject[] args)
groupdictback to summary
public PyObject groupdict(PyObject[] args, String[] kws)
groupsback to summary
public PyObject groups(PyObject[] args, String[] kws)
refersDirectlyToback to summary
public boolean refersDirectlyTo(PyObject ob)

Implements org.python.core.Traverseproc.refersDirectlyTo.

Doc from org.python.core.Traverseproc.refersDirectlyTo.

Optional operation. Should only be implemented if it is more efficient than calling traverse(Visitproc, Object) with a visitproc that just watches out for ob. Must return false if ob is null.

Annotations
@Override
regsback to summary
public PyObject regs()
spanback to summary
public PyTuple span()
spanback to summary
public PyTuple span(PyObject index_)
startback to summary
public PyObject start()
startback to summary
public PyObject start(PyObject index_)
traverseback to summary
public int traverse(Visitproc visit, Object arg)

Implements org.python.core.Traverseproc.traverse.

Doc from org.python.core.Traverseproc.traverse.

Traverses all directly contained PyObjects. Like in CPython, arg must be passed unmodified to visit as its second parameter. If Visitproc#visit(PyObject, Object) returns nonzero, this return value must be returned immediately by traverse. Visitproc#visit(PyObject, Object) must not be called with a null PyObject-argument.

Annotations
@Override