Top Description Fields Constructors Methods
org.python.core

pack-priv abstract Class AbstractPyObject

extends Object
implements CraftedPyObject
Class Inheritance
All Implemented Interfaces
org.python.core.CraftedPyObject
Known Direct Subclasses
org.python.core.Descriptor, org.python.core.PyBaseObject, org.python.core.PyFloat, org.python.core.PyFunction, org.python.core.PyLong, org.python.core.PyMethodWrapper, org.python.core.PySlice

Class that may be used as a base for Python objects (but doesn't have to be) to supply some universally needed methods and the type.

Field Summary

Modifier and TypeField and Description
private PyType

Constructor Summary

AccessConstructor and Description
protected
AbstractPyObject(PyType
actual Python type being created
type
)

Constructor specifying the Python type, as returned by getType().

Method Summary

Modifier and TypeMethod and Description
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

typeback to summary
private PyType type

Constructor Detail

AbstractPyObjectback to summary
protected AbstractPyObject(PyType type)

Constructor specifying the Python type, as returned by getType(). As this is a base for the implementation of all sorts of Python types, it needs to be told which one it is.

Parameters
type:PyType

actual Python type being created

Method Detail

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