Top Description Fields Constructors Methods
org.python.core

public Class PyCell

extends Object
implements Supplier<Object>, CraftedPyObject
Class Inheritance
All Implemented Interfaces
org.python.core.CraftedPyObject, java.util.function.Supplier
Imports
java.lang.invoke.MethodHandles, java.util.function.Supplier

Holder for objects appearing in the closure of a function.

Field Summary

Modifier and TypeField and Description
pack-priv static final PyCell[]
EMPTY_ARRAY

Handy constant where no cells are neeed in a frame.

pack-priv Object
obj

The object currently held.

public static final PyType
TYPE

The Python type cell.

Constructor Summary

AccessConstructor and Description
pack-priv
PyCell(Object
to hold
obj
)

Construct a cell to hold the object.

Method Summary

Modifier and TypeMethod and Description
private Object
public Object
get()

Implements java.util.function.Supplier.get.

Gets a result.
public PyType
getType()

Implements org.python.core.CraftedPyObject.getType.

The Python type of this object.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

EMPTY_ARRAYback to summary
pack-priv static final PyCell[] EMPTY_ARRAY

Handy constant where no cells are neeed in a frame.

objback to summary
pack-priv Object obj

The object currently held.

TYPEback to summary
public static final PyType TYPE

The Python type cell.

Constructor Detail

PyCellback to summary
pack-priv PyCell(Object obj)

Construct a cell to hold the object.

Parameters
obj:Object

to hold

Method Detail

__repr__back to summary
private Object __repr__()
Annotations
@SuppressWarnings:unused
getback to summary
public Object get()

Implements java.util.function.Supplier.get.

Doc from java.util.function.Supplier.get.

Gets a result.

Returns:Object

a result

Annotations
@Override
getTypeback to summary
public PyType getType()

Implements org.python.core.CraftedPyObject.getType.

Doc from org.python.core.CraftedPyObject.getType.

The Python type of this object.

Returns:PyType

type of this object

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override