Top Description Methods
org.python.expose

public @Interface ExposedClassMethod

extends Annotation
Annotations
@Retention:RUNTIME
@Target:METHOD
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Indicates a method should be exposed as a classmethod to Python code.

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

default arguments. Starts at the number of arguments - defaults.length.
defaults
()

public String
doc()

Returns the __doc__ String for this method.

public String[]

Returns:

the names to expose this method as. Defaults to just actual name of the method.
names
()

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

defaultsback to summary
public String[] defaults()
Returns:String[]

default arguments. Starts at the number of arguments - defaults.length.

docback to summary
public String doc()

Returns the __doc__ String for this method.

namesback to summary
public String[] names()
Returns:String[]

the names to expose this method as. Defaults to just actual name of the method.