Top Description Fields Constructors Methods
org.python.core

public Class CompilerFacade

extends Object
Class Inheritance
Imports
org.python.antlr.base.mod, org.python.compiler.LegacyCompiler

Facade for different compiler implementations. The static methods of this class act as a Facade for the compiler subsystem. This is so that the rest of Jython (even generated code) can statically link to the static interface of this class, while allowing for different implementations of the various components of the compiler subsystem.
Author
Tobias Ivarsson

Field Summary

Modifier and TypeField and Description
private static volatile PythonCompiler

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

private static PythonCompiler
public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

compilerback to summary
private static volatile PythonCompiler compiler

Constructor Detail

CompilerFacadeback to summary
public CompilerFacade()

Method Detail

compileback to summary
public static PyCode compile(mod node, String name, String filename, boolean linenumbers, boolean printResults, CompilerFlags cflags)
loadDefaultCompilerback to summary
private static PythonCompiler loadDefaultCompiler()
setCompilerback to summary
public static void setCompiler(PythonCompiler compiler)