Top Inners Fields Constructors Methods
org.python.modules.jffi

public abstract Class CType

extends PyObject
Class Inheritance
Known Direct Subclasses
org.python.modules.jffi.CType.Builtin, org.python.modules.jffi.CType.Custom
Annotations
@ExposedType
name:jffi.Type
base:PyObject
Imports
java.util.concurrent.ConcurrentHashMap, .ConcurrentMap, org.python.core.Py, .PyNewWrapper, .PyObject, .PyType, .Untraversable, .Traverseproc, .Visitproc, org.python.expose.ExposeAsSuperclass, .ExposedGet, .ExposedMethod, .ExposedNew, .ExposedType

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
public static final CType
public static final CType
public static final CType
public static final CType
public static final CType
public static final CType
public static final CType
private final MemoryOp
memoryOp

The MemoryOp used to read/write items of this type

pack-priv final NativeType
public static final CType
public static final CType
public static final CType
public static final PyType
public static final CType
public static final CType
public static final CType
public static final CType
public static final CType
public static final CType
Inherited from org.python.core.PyObject:
attributesgcMonitorGlobalobjtype

Constructor Summary

AccessConstructor and Description
pack-priv
CType(NativeType type, MemoryOp memoryOp)

Method Summary

Modifier and TypeMethod and Description
public final int
pack-priv MemoryOp
public NativeType
pack-priv abstract Type
pack-priv static final CType
public final PyObject
public final PyObject
public final int
size()

pack-priv static CType
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__equalsfastGetClassfastGetDictfinalizegetDictgetJavaProxygetTypehashCodeimpAttrimplementsDescrDeleteimplementsDescrGetimplementsDescrSetinvokeinvokeinvokeinvokeinvokeinvokeisCallableisDataDescrisIndexisIntegerisMappingTypeisNumberTypeisSequenceTypemergeClassDictmergeDictAttrmergeListAttrnoAttributeErrorobject___subclasshook__readonlyAttributeErrorrunsupportedopMessagesetDictsetTypetoStringunsupportedopMessage

Field Detail

BOOLback to summary
public static final CType BOOL
BYTEback to summary
public static final CType BYTE
DOUBLEback to summary
public static final CType DOUBLE
FLOATback to summary
public static final CType FLOAT
INTback to summary
public static final CType INT
LONGback to summary
public static final CType LONG
LONGLONGback to summary
public static final CType LONGLONG
memoryOpback to summary
private final MemoryOp memoryOp

The MemoryOp used to read/write items of this type

nativeTypeback to summary
pack-priv final NativeType nativeType
POINTERback to summary
public static final CType POINTER
SHORTback to summary
public static final CType SHORT
STRINGback to summary
public static final CType STRING
TYPEback to summary
public static final PyType TYPE

Hides org.python.core.PyObject.TYPE.

UBYTEback to summary
public static final CType UBYTE
UINTback to summary
public static final CType UINT
ULONGback to summary
public static final CType ULONG
ULONGLONGback to summary
public static final CType ULONGLONG
USHORTback to summary
public static final CType USHORT
VOIDback to summary
public static final CType VOID

Constructor Detail

CTypeback to summary
pack-priv CType(NativeType type, MemoryOp memoryOp)

Method Detail

alignmentback to summary
public final int alignment()
getMemoryOpback to summary
pack-priv MemoryOp getMemoryOp()
getNativeTypeback to summary
public NativeType getNativeType()
jffiTypeback to summary
pack-priv abstract Type jffiType()
primitiveback to summary
pack-priv static final CType primitive(NativeType type)
pyalignmentback to summary
public final PyObject pyalignment()
Annotations
@ExposedMethod
names:alignment
pysizeback to summary
public final PyObject pysize()
Annotations
@ExposedMethod
names:size
sizeback to summary
public final int size()
typeOfback to summary
pack-priv static CType typeOf(PyObject obj)
org.python.modules.jffi back to summary

pack-priv final Class CType.Array

extends Custom
implements Traverseproc
Class Inheritance
All Implemented Interfaces
org.python.core.Traverseproc
Annotations
@ExposedType
name:jffi.Type.Array
base:CType

Field Summary

Modifier and TypeField and Description
pack-priv final MemoryOp
pack-priv final CType
public final int
pack-priv final PyType
public static final PyType
Inherited from org.python.modules.jffi.CType.Custom:
jffiType

Constructor Summary

AccessConstructor and Description
public
Array(PyType pyComponentType, CType componentType, int length)

Method Summary

Modifier and TypeMethod and Description
public int
__len__()

Overrides org.python.core.PyObject.__len__.

Equivalent to the standard Python __len__ method.

public static PyObject
Array_new(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)

pack-priv static final MemoryOp
getComponentMemoryOp(PyType pyComponentType, CType componentType)

public boolean
public final String
toString()

Overrides org.python.core.PyObject.toString.

Returns a string representation of the object.

public int
traverse(Visitproc visit, Object arg)

Implements org.python.core.Traverseproc.traverse.

Traverses all directly contained PyObjects.

Inherited from org.python.modules.jffi.CType.Custom:
jffiType

Field Detail

componentMemoryOpback to summary
pack-priv final MemoryOp componentMemoryOp
componentTypeback to summary
pack-priv final CType componentType
lengthback to summary
public final int length
Annotations
@ExposedGet
pyComponentTypeback to summary
pack-priv final PyType pyComponentType
TYPEback to summary
public static final PyType TYPE

Hides org.python.modules.jffi.CType.TYPE.

Constructor Detail

Arrayback to summary
public Array(PyType pyComponentType, CType componentType, int length)

Method Detail

__len__back to summary
public int __len__()

Overrides org.python.core.PyObject.__len__.

Doc from org.python.core.PyObject.__len__.

Equivalent to the standard Python __len__ method. Part of the mapping discipline.

Returns:int

the length of the object

Annotations
@Override

Array_newback to summary
public static PyObject Array_new(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)
Annotations
@ExposedNew
getComponentMemoryOpback to summary
pack-priv static final MemoryOp getComponentMemoryOp(PyType pyComponentType, CType componentType)
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
toStringback to summary
public final String toString()

Overrides org.python.core.PyObject.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override

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
org.python.modules.jffi back to summary

pack-priv final Class CType.Builtin

extends CType
implements ExposeAsSuperclass
Class Inheritance
All Implemented Interfaces
org.python.expose.ExposeAsSuperclass
Annotations
@Untraversable

Field Summary

Inherited from org.python.modules.jffi.CType:
BOOLBYTEDOUBLEFLOATINTLONGLONGLONGnativeTypePOINTERSHORTSTRINGTYPEUBYTEUINTULONGULONGLONGUSHORTVOID

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv final Type
public final String
toString()

Overrides org.python.core.PyObject.toString.

Returns a string representation of the object.

Inherited from org.python.modules.jffi.CType:
alignmentgetMemoryOpgetNativeTypeprimitivepyalignmentpysizesizetypeOf

Constructor Detail

Builtinback to summary
public Builtin(NativeType type)

Method Detail

jffiTypeback to summary
pack-priv final Type jffiType()

Implements abstract org.python.modules.jffi.CType.jffiType.

toStringback to summary
public final String toString()

Overrides org.python.core.PyObject.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override

org.python.modules.jffi back to summary

pack-priv Class CType.Custom

extends CType
Class Inheritance
Known Direct Subclasses
org.python.modules.jffi.CType.Array, org.python.modules.jffi.CType.Pointer, org.python.modules.jffi.StructLayout
Annotations
@Untraversable
@ExposedType
name:jffi.Type.Custom
base:CType

Field Summary

Modifier and TypeField and Description
pack-priv final Type
Inherited from org.python.modules.jffi.CType:
BOOLBYTEDOUBLEFLOATINTLONGLONGLONGnativeTypePOINTERSHORTSTRINGTYPEUBYTEUINTULONGULONGLONGUSHORTVOID

Constructor Summary

AccessConstructor and Description
public
Custom(NativeType type, Type jffiType, MemoryOp op)

Method Summary

Modifier and TypeMethod and Description
pack-priv final Type
Inherited from org.python.modules.jffi.CType:
alignmentgetMemoryOpgetNativeTypeprimitivepyalignmentpysizesizetypeOf

Field Detail

jffiTypeback to summary
pack-priv final Type jffiType

Constructor Detail

Customback to summary
public Custom(NativeType type, Type jffiType, MemoryOp op)

Method Detail

jffiTypeback to summary
pack-priv final Type jffiType()

Implements abstract org.python.modules.jffi.CType.jffiType.

org.python.modules.jffi back to summary

pack-priv final Class CType.Pointer

extends Custom
implements Traverseproc
Class Inheritance
All Implemented Interfaces
org.python.core.Traverseproc
Annotations
@ExposedType
name:jffi.Type.Pointer
base:CType

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
pack-priv final MemoryOp
pack-priv final CType
pack-priv final PyType
public static final PyType
private static final ConcurrentMap<PyObject, CType.Pointer>
Inherited from org.python.modules.jffi.CType.Custom:
jffiType

Constructor Summary

AccessConstructor and Description
pack-priv
Pointer(PyType subtype, PyType pyComponentType, CType componentType)

Method Summary

Modifier and TypeMethod and Description
public static PyObject
Pointer_new(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)

public boolean
public final String
toString()

Overrides org.python.core.PyObject.toString.

Returns a string representation of the object.

public int
traverse(Visitproc visit, Object arg)

Implements org.python.core.Traverseproc.traverse.

Traverses all directly contained PyObjects.

Inherited from org.python.modules.jffi.CType.Custom:
jffiType

Field Detail

componentMemoryOpback to summary
pack-priv final MemoryOp componentMemoryOp
componentTypeback to summary
pack-priv final CType componentType
pyComponentTypeback to summary
pack-priv final PyType pyComponentType
TYPEback to summary
public static final PyType TYPE

Hides org.python.modules.jffi.CType.TYPE.

typeCacheback to summary
private static final ConcurrentMap<PyObject, CType.Pointer> typeCache

Constructor Detail

Pointerback to summary
pack-priv Pointer(PyType subtype, PyType pyComponentType, CType componentType)

Method Detail

Pointer_newback to summary
public static PyObject Pointer_new(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)
Annotations
@ExposedNew
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
toStringback to summary
public final String toString()

Overrides org.python.core.PyObject.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override

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
org.python.modules.jffi back to summary

private final Class CType.Pointer.ScalarOp

extends MemoryOp
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final MemoryOp
private final PyType
Inherited from org.python.modules.jffi.MemoryOp:
BOOLDOUBLEFLOATINT16INT32INT64INT8INVALIDPOINTERSTRINGUINT16UINT32UINT64UINT8VOID

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final PyObject
get(Memory mem, long offset)

Implements abstract org.python.modules.jffi.MemoryOp.get.

public final void
put(Memory mem, long offset, PyObject value)

Implements abstract org.python.modules.jffi.MemoryOp.put.

Inherited from org.python.modules.jffi.MemoryOp:
getMemoryOp

Field Detail

opback to summary
private final MemoryOp op
typeback to summary
private final PyType type

Constructor Detail

ScalarOpback to summary
public ScalarOp(MemoryOp op, PyType type)

Method Detail

getback to summary
public final PyObject get(Memory mem, long offset)

Implements abstract org.python.modules.jffi.MemoryOp.get.

putback to summary
public final void put(Memory mem, long offset, PyObject value)

Implements abstract org.python.modules.jffi.MemoryOp.put.