Top Description Methods
org.python.expose

public @Interface ExposedMethod

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

Indicates a method should be exposed to Python code.

Method Summary

Modifier and TypeMethod and Description
public String[]
defaults()

Returns default arguments.

public String
doc()

Returns the __doc__ String for this method.

public String[]
names()

Returns the names to expose this method as.

public MethodType
type()

Returns how to expose this method.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

defaultsback to summary
public String[] defaults()

Returns 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 the names to expose this method as. Defaults to the name of the method.

typeback to summary
public MethodType type()

Returns how to expose this method. See MethodType for the options.