Top Fields Constructors Methods
org.python.modules.posix

public Class PyStatResult

extends PyTuple
Class Inheritance
Annotations
@ExposedType
name:stat_result
isBaseType:false
Imports
jnr.posix.FileStat, org.python.core.ArgParser, .Py, .PyList, .PyNewWrapper, .PyObject, .PyString, .PyTuple, .PyType, .Visitproc, org.python.expose.ExposedGet, .ExposedMethod, .ExposedNew, .ExposedType, .MethodType, java.nio.file.attribute.DosFileAttributes, .FileTime, java.util.Map, java.util.concurrent.TimeUnit

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public PyObject
public PyObject
public PyObject
public PyObject
public PyObject
public PyObject
public PyObject
public PyObject
public PyObject
public PyObject
public static final PyType

Constructor Summary

AccessConstructor and Description
pack-priv
protected
PyStatResult(PyObject[] vals, PyObject st_atime, PyObject st_mtime, PyObject st_ctime)

Method Summary

Modifier and TypeMethod and Description
public synchronized PyObject
__eq__(PyObject
the object to compare this with.
o
)

Overrides org.python.core.PySequence.__eq__.

Equivalent to the standard Python __eq__ method.

public PyTuple
public synchronized PyObject
__ne__(PyObject
the object to compare this with.
o
)

Overrides org.python.core.PySequence.__ne__.

Equivalent to the standard Python __ne__ method.

public PyObject

Returns:

a tuple of (class, tuple)
__reduce__
()

Overrides org.python.core.PyObject.__reduce__.

Used for pickling.

public PyString
__repr__()

Overrides org.python.core.PyObject.__repr__.

Equivalent to the standard Python __repr__ method.

public static PyStatResult
public static PyStatResult
private static double
public static PyStatResult
public boolean
pack-priv final synchronized PyObject
pack-priv final synchronized PyObject
pack-priv final PyObject
pack-priv static PyObject
stat_result_new(PyNewWrapper wrapper, boolean init, PyType subtype, PyObject[] args, String[] keywords)

public int
traverse(Visitproc visit, Object arg)

Overrides org.python.core.PyTuple.traverse.

Implements org.python.core.Traverseproc.traverse.

Traverses all directly contained PyObjects.

private static Long
private static Integer
Inherited from org.python.core.PyTuple:
__add____iter____len____mul____rmul__addaddaddAlladdAllclearcontainscontainsAllcountequalsfromIterablegetgetArraygetslicehashCodeindexindexindexindexOfisEmptyiteratorlastIndexOflistIteratorlistIteratorpyaddpyaddpygetpysetremoveremoveremoveremoveAllrepeatretainAllsetsizesubListtoArraytoArraytoStringtuple___iter__unsupportedopMessage

Field Detail

n_fieldsback to summary
public static final int n_fields
Annotations
@ExposedGet
n_sequence_fieldsback to summary
public static final int n_sequence_fields
Annotations
@ExposedGet
n_unnamed_fieldsback to summary
public static final int n_unnamed_fields
Annotations
@ExposedGet
st_atimeback to summary
public PyObject st_atime
Annotations
@ExposedGet
st_ctimeback to summary
public PyObject st_ctime
Annotations
@ExposedGet
st_devback to summary
public PyObject st_dev
Annotations
@ExposedGet
st_gidback to summary
public PyObject st_gid
Annotations
@ExposedGet
st_inoback to summary
public PyObject st_ino
Annotations
@ExposedGet
st_modeback to summary
public PyObject st_mode
Annotations
@ExposedGet
st_mtimeback to summary
public PyObject st_mtime
Annotations
@ExposedGet
st_sizeback to summary
public PyObject st_size
Annotations
@ExposedGet
st_uidback to summary
public PyObject st_uid
Annotations
@ExposedGet
TYPEback to summary
public static final PyType TYPE

Hides org.python.core.PyTuple.TYPE.

Constructor Detail

PyStatResultback to summary
pack-priv PyStatResult(PyObject... vals)
PyStatResultback to summary
protected PyStatResult(PyObject[] vals, PyObject st_atime, PyObject st_mtime, PyObject st_ctime)

Method Detail

__eq__back to summary
public synchronized PyObject __eq__(PyObject o)

Overrides org.python.core.PySequence.__eq__.

Doc from org.python.core.PyObject.__eq__.

Equivalent to the standard Python __eq__ method.

Parameters
o:PyObject

the object to compare this with.

Returns:PyObject

the result of the comparison.

Annotations
@Override

__getnewargs__back to summary
public PyTuple __getnewargs__()

Overrides org.python.core.PyTuple.__getnewargs__.

Annotations
@Override
__ne__back to summary
public synchronized PyObject __ne__(PyObject o)

Overrides org.python.core.PySequence.__ne__.

Doc from org.python.core.PyObject.__ne__.

Equivalent to the standard Python __ne__ method.

Parameters
o:PyObject

the object to compare this with.

Returns:PyObject

the result of the comparison.

Annotations
@Override

__reduce__back to summary
public PyObject __reduce__()

Overrides org.python.core.PyObject.__reduce__.

Used for pickling.

Returns:PyObject

a tuple of (class, tuple)

Annotations
@Override

__repr__back to summary
public PyString __repr__()

Overrides org.python.core.PyObject.__repr__.

Doc from org.python.core.PyObject.__repr__.

Equivalent to the standard Python __repr__ method. Each sub-class of PyObject is likely to re-define this method to provide for its own reproduction.

Annotations
@Override
fromDosFileAttributesback to summary
public static PyStatResult fromDosFileAttributes(int mode, DosFileAttributes stat)
fromFileStatback to summary
public static PyStatResult fromFileStat(FileStat stat)
fromFileTimeback to summary
private static double fromFileTime(FileTime fileTime)
fromUnixFileAttributesback to summary
public static PyStatResult fromUnixFileAttributes(Map<String, Object> stat)
refersDirectlyToback to summary
public boolean refersDirectlyTo(PyObject ob)

Overrides org.python.core.PyTuple.refersDirectlyTo.

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
stat_result___eq__back to summary
pack-priv final synchronized PyObject stat_result___eq__(PyObject o)
Annotations
@ExposedMethod
type:BINARY
stat_result___ne__back to summary
pack-priv final synchronized PyObject stat_result___ne__(PyObject o)
Annotations
@ExposedMethod
type:BINARY
stat_result___reduce__back to summary
pack-priv final PyObject stat_result___reduce__()
Annotations
@ExposedMethod
stat_result_newback to summary
pack-priv static PyObject stat_result_new(PyNewWrapper wrapper, boolean init, PyType subtype, PyObject[] args, String[] keywords)
Annotations
@ExposedNew
traverseback to summary
public int traverse(Visitproc visit, Object arg)

Overrides org.python.core.PyTuple.traverse.

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
zeroOrValueback to summary
private static Long zeroOrValue(Long value)
zeroOrValueback to summary
private static Integer zeroOrValue(Integer value)