Top Fields Constructors Methods
org.python.modules

public Class PyStruct

extends PyObject
Class Inheritance
Known Direct Subclasses
org.python.modules.PyStructDerived
Annotations
@Untraversable
@ExposedType
name:struct.Struct
base:PyObject
Imports
org.python.core.ArgParser, .Py, .PyArray, .PyNewWrapper, .PyObject, .PyString, .PyTuple, .PyType, .Untraversable, org.python.expose.ExposedGet, .ExposedMethod, .ExposedNew, .ExposedType

Field Summary

Modifier and TypeField and Description
public final String
private final struct.FormatDef[]
public final int
public static final PyType
Inherited from org.python.core.PyObject:
attributesgcMonitorGlobalobjtype

Constructor Summary

AccessConstructor and Description
public
public
PyStruct(PyType type, PyString format)

Method Summary

Modifier and TypeMethod and Description
public PyType
public String
pack(PyObject[] args, String[] kwds)

pack-priv final void
pack_into(PyObject[] args, String[] kwds)

pack-priv static final PyObject
Struct___new__(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)

public PyTuple
unpack(PyObject source)

public PyTuple
unpack_from(PyObject string, int offset)

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____findattr_ex____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__equalsfastGetClassfastGetDictfinalizegetDictgetJavaProxyhashCodeimpAttrimplementsDescrDeleteimplementsDescrGetimplementsDescrSetinvokeinvokeinvokeinvokeinvokeinvokeisCallableisDataDescrisIndexisIntegerisMappingTypeisNumberTypeisSequenceTypemergeClassDictmergeDictAttrmergeListAttrnoAttributeErrorobject___subclasshook__readonlyAttributeErrorrunsupportedopMessagesetDictsetTypetoStringunsupportedopMessage

Field Detail

formatback to summary
public final String format
Annotations
@ExposedGet
format_defback to summary
private final struct.FormatDef[] format_def
sizeback to summary
public final int size
Annotations
@ExposedGet
TYPEback to summary
public static final PyType TYPE

Hides org.python.core.PyObject.TYPE.

Constructor Detail

PyStructback to summary
public PyStruct(PyString format)
PyStructback to summary
public PyStruct(PyType type, PyString format)

Method Detail

getTypeback to summary
public PyType getType()

Overrides org.python.core.PyObject.getType.

Annotations
@ExposedGet
name:__class__
@Override
packback to summary
public String pack(PyObject[] args, String[] kwds)
Annotations
@ExposedMethod
pack_intoback to summary
pack-priv final void pack_into(PyObject[] args, String[] kwds)
Annotations
@ExposedMethod
Struct___new__back to summary
pack-priv static final PyObject Struct___new__(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)
Annotations
@ExposedNew
unpackback to summary
public PyTuple unpack(PyObject source)
Annotations
@ExposedMethod
unpack_fromback to summary
public PyTuple unpack_from(PyObject string, int offset)
Annotations
@ExposedMethod
defaults:0