Top Description Methods
org.python.expose

public @Interface ExposedType

extends Annotation
Annotations
@Retention:RUNTIME
@Target:TYPE
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target, org.python.core.PyNewWrapper, .PyObject, .PyType

Indicates a given class should be made visible to Python code as a builtin type.

Method Summary

Modifier and TypeMethod and Description
public Class<T>

Returns:

the base type of this type. Must be another class anotated with ExposedType. If unspecified, the base is set to object, or PyObject.class.
base
()

public String
doc()

Returns the __doc__ String for this type.

public boolean

Returns:

Whether this type allows subclassing.
isBaseType
()

public String

Returns:

the name to expose this item as. Defaults to the actual name of the class.
name
()

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

baseback to summary
public Class<T> base()
Returns:Class<T>

the base type of this type. Must be another class anotated with ExposedType. If unspecified, the base is set to object, or PyObject.class.

docback to summary
public String doc()

Returns the __doc__ String for this type.

isBaseTypeback to summary
public boolean isBaseType()
Returns:boolean

Whether this type allows subclassing.

nameback to summary
public String name()
Returns:String

the name to expose this item as. Defaults to the actual name of the class.