01: // Copyright (c) Corporation for National Research Initiatives
02: package org.python.core;
03:
04: /**
05: * A super class for all python code implementations.
06: */
07: public abstract class PyCode extends PyObject {
08: public String co_name;
09:
10: abstract public PyObject call(PyFrame frame, PyObject closure);
11:
12: public PyObject call(PyFrame frame) {
13: return call(frame, null);
14: }
15:
16: abstract public PyObject call(PyObject args[], String keywords[],
17: PyObject globals, PyObject[] defaults, PyObject closure);
18:
19: abstract public PyObject call(PyObject self, PyObject args[],
20: String keywords[], PyObject globals, PyObject[] defaults,
21: PyObject closure);
22:
23: abstract public PyObject call(PyObject globals,
24: PyObject[] defaults, PyObject closure);
25:
26: abstract public PyObject call(PyObject arg1, PyObject globals,
27: PyObject[] defaults, PyObject closure);
28:
29: abstract public PyObject call(PyObject arg1, PyObject arg2,
30: PyObject globals, PyObject[] defaults, PyObject closure);
31:
32: abstract public PyObject call(PyObject arg1, PyObject arg2,
33: PyObject arg3, PyObject globals, PyObject[] defaults,
34: PyObject closure);
35:
36: }
|