org.python.compiler
Class Module
java.lang.Object
org.python.compiler.Module
- All Implemented Interfaces:
- ClassConstants
- public class Module
- extends Object
- implements ClassConstants
Fields inherited from interface org.python.compiler.ClassConstants |
$clss, $obj, $objArr, $pyCode, $pyComplex, $pyExc, $pyFloat, $pyFrame, $pyFuncTbl, $pyInteger, $pyLong, $pyObj, $pyObjArr, $pyProxy, $pyRunnable, $pyStr, $str, $strArr, $throwable |
Method Summary |
void |
addConstants()
|
void |
addFunctions()
|
void |
addInit()
|
void |
addMain()
|
void |
addRunnable()
|
static void |
compile(SimpleNode node,
OutputStream ostream,
String name,
String filename,
boolean linenumbers,
boolean printResults,
boolean setFile,
CompilerFlags cflags)
|
org.python.compiler.PyCodeConstant |
PyCode(SimpleNode tree,
String name,
boolean fast_locals,
String className,
boolean classBody,
boolean printResults,
int firstlineno,
ScopeInfo scope)
|
org.python.compiler.PyCodeConstant |
PyCode(SimpleNode tree,
String name,
boolean fast_locals,
String className,
boolean classBody,
boolean printResults,
int firstlineno,
ScopeInfo scope,
CompilerFlags cflags)
|
org.python.compiler.Constant |
PyComplex(double value)
|
org.python.compiler.Constant |
PyFloat(double value)
|
org.python.compiler.Constant |
PyInteger(int value)
|
org.python.compiler.Constant |
PyLong(String value)
|
org.python.compiler.Constant |
PyString(String value)
|
void |
write(OutputStream stream)
|
mainCode
public org.python.compiler.Constant mainCode
linenumbers
public boolean linenumbers
setFile
public boolean setFile
Module
public Module(String name,
String filename,
boolean linenumbers)
Module
public Module(String name)
PyInteger
public org.python.compiler.Constant PyInteger(int value)
PyFloat
public org.python.compiler.Constant PyFloat(double value)
PyComplex
public org.python.compiler.Constant PyComplex(double value)
PyString
public org.python.compiler.Constant PyString(String value)
PyLong
public org.python.compiler.Constant PyLong(String value)
PyCode
public org.python.compiler.PyCodeConstant PyCode(SimpleNode tree,
String name,
boolean fast_locals,
String className,
boolean classBody,
boolean printResults,
int firstlineno,
ScopeInfo scope)
throws Exception
- Throws:
Exception
PyCode
public org.python.compiler.PyCodeConstant PyCode(SimpleNode tree,
String name,
boolean fast_locals,
String className,
boolean classBody,
boolean printResults,
int firstlineno,
ScopeInfo scope,
CompilerFlags cflags)
throws Exception
- Throws:
Exception
addInit
public void addInit()
throws IOException
- Throws:
IOException
addRunnable
public void addRunnable()
throws IOException
- Throws:
IOException
addMain
public void addMain()
throws IOException
- Throws:
IOException
addConstants
public void addConstants()
throws IOException
- Throws:
IOException
addFunctions
public void addFunctions()
throws IOException
- Throws:
IOException
write
public void write(OutputStream stream)
throws IOException
- Throws:
IOException
compile
public static void compile(SimpleNode node,
OutputStream ostream,
String name,
String filename,
boolean linenumbers,
boolean printResults,
boolean setFile,
CompilerFlags cflags)
throws Exception
- Throws:
Exception