Top Constructors Methods
org.python.core

pack-priv Class CompileFunction

Located in compilation unit of org.python.core.__builtin__.

extends PyBuiltinFunction
Class Inheritance
Annotations
@Untraversable

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public PyObject
__call__(PyObject[]
all arguments to the function (including keyword arguments).
args
,
String[]
the keywords used for all keyword arguments.
kwds
)

Overrides org.python.core.PyObject.__call__.

The basic method to override when implementing a callable object.

public static PyObject
compile(PyObject source, String filename, String mode)

public static PyObject
compile(PyObject source, String filename, String mode, int flags, boolean dont_inherit)

public static PyObject
compile(PyObject source, String filename, CompileMode kind, CompilerFlags cflags, boolean dont_inherit)

private static mod

Returns:

mod if obj is a wrapper around an AST mod else returns null XXX: Reaches into implementation details -- needs to be reviewed if our java integration changes.
py2node
(PyObject obj)

Inherited from org.python.core.PyBuiltinFunction:
bindisMappingTypeisNumberTypeisSequenceTypetoString

Constructor Detail

CompileFunctionback to summary
pack-priv CompileFunction()

Method Detail

__call__back to summary
public PyObject __call__(PyObject[] args, String[] kwds)

Overrides org.python.core.PyObject.__call__.

Doc from org.python.core.PyObject.__call__.

The basic method to override when implementing a callable object. The first len(args)-len(keywords) members of args[] are plain arguments. The last len(keywords) arguments are the values of the keyword arguments.

Parameters
args:PyObject[]

all arguments to the function (including keyword arguments).

kwds:String[]

the keywords used for all keyword arguments.

Annotations
@Override
compileback to summary
public static PyObject compile(PyObject source, String filename, String mode)
compileback to summary
public static PyObject compile(PyObject source, String filename, String mode, int flags, boolean dont_inherit)
compileback to summary
public static PyObject compile(PyObject source, String filename, CompileMode kind, CompilerFlags cflags, boolean dont_inherit)
py2nodeback to summary
private static mod py2node(PyObject obj)
Returns:mod

mod if obj is a wrapper around an AST mod else returns null XXX: Reaches into implementation details -- needs to be reviewed if our java integration changes.