Top Inners Constructors Methods
org.python.compiler

public Class LegacyCompiler

extends Object
implements PythonCompiler
Class Inheritance
All Implemented Interfaces
org.python.core.PythonCompiler
Imports
java.io.ByteArrayOutputStream, .OutputStream, org.python.antlr.base.mod, org.python.core.BytecodeLoader, .CompilerFlags, .Py, .PyCode, .PythonCodeBundle, .PythonCompiler

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PythonCodeBundle
compile(mod node, String name, String filename, boolean linenumbers, boolean printResults, CompilerFlags cflags)

Implements org.python.core.PythonCompiler.compile.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LegacyCompilerback to summary
public LegacyCompiler()

Method Detail

compileback to summary
public PythonCodeBundle compile(mod node, String name, String filename, boolean linenumbers, boolean printResults, CompilerFlags cflags)

Implements org.python.core.PythonCompiler.compile.

org.python.compiler back to summary

private Class LegacyCompiler.LazyLegacyBundle

extends Object
implements PythonCodeBundle
Class Inheritance
All Implemented Interfaces
org.python.core.PythonCodeBundle

Field Summary

Modifier and TypeField and Description
private final CompilerFlags
private final String
private final boolean
private final String
private final mod
private ByteArrayOutputStream
private final boolean

Constructor Summary

AccessConstructor and Description
public
LazyLegacyBundle(mod node, String name, String filename, boolean linenumbers, boolean printResults, CompilerFlags cflags)

Method Summary

Modifier and TypeMethod and Description
public PyCode
private ByteArrayOutputStream
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cflagsback to summary
private final CompilerFlags cflags
filenameback to summary
private final String filename
linenumbersback to summary
private final boolean linenumbers
nameback to summary
private final String name
nodeback to summary
private final mod node
ostreamback to summary
private ByteArrayOutputStream ostream
printResultsback to summary
private final boolean printResults

Constructor Detail

LazyLegacyBundleback to summary
public LazyLegacyBundle(mod node, String name, String filename, boolean linenumbers, boolean printResults, CompilerFlags cflags)

Method Detail

loadCodeback to summary
public PyCode loadCode() throws Exception

Implements org.python.core.PythonCodeBundle.loadCode.

ostreamback to summary
private ByteArrayOutputStream ostream() throws Exception
writeToback to summary
public void writeTo(OutputStream stream) throws Exception

Implements org.python.core.PythonCodeBundle.writeTo.