public final class PySrcMain extends Object
Important: Do not use outside of Soy code (treat as superpackage-private).
| Constructor and Description |
|---|
PySrcMain(GuiceSimpleScope apiCallScope) |
| Modifier and Type | Method and Description |
|---|---|
void |
genPyFiles(SoyFileSetNode soyTree,
SoyPySrcOptions pySrcOptions,
String outputPathFormat,
String inputPathsPrefix,
ErrorReporter errorReporter)
Generates Python source files given a Soy parse tree, an options object, and information on
where to put the output files.
|
public PySrcMain(GuiceSimpleScope apiCallScope)
public void genPyFiles(SoyFileSetNode soyTree, SoyPySrcOptions pySrcOptions, String outputPathFormat, String inputPathsPrefix, ErrorReporter errorReporter) throws IOException
soyTree - The Soy parse tree to generate Python source code for.pySrcOptions - The compilation options relevant to this backend.outputPathFormat - The format string defining how to build the output file path
corresponding to an input file path.inputPathsPrefix - The input path prefix, or empty string if none.errorReporter - The Soy error reporter that collects errors during code generation.IOException - If there is an error in opening/writing an output Python file.