public class IncrementalDomSrcMain extends Object
Important: Do not use outside of Soy code (treat as superpackage-private).
| Constructor and Description |
|---|
IncrementalDomSrcMain(GuiceSimpleScope apiCallScope,
SoyTypeRegistry typeRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
genJsFiles(SoyFileSetNode soyTree,
TemplateRegistry templateRegistry,
SoyIncrementalDomSrcOptions jsSrcOptions,
String outputPathFormat,
ErrorReporter errorReporter)
Generates Incremental DOM JS source files given a Soy parse tree, an options object, an
optional bundle of translated messages, and information on where to put the output files.
|
List<String> |
genJsSrc(SoyFileSetNode soyTree,
TemplateRegistry registry,
SoyIncrementalDomSrcOptions options,
ErrorReporter errorReporter)
Generates Incremental DOM JS source code given a Soy parse tree, an options object, and an
optional bundle of translated messages.
|
public IncrementalDomSrcMain(GuiceSimpleScope apiCallScope, SoyTypeRegistry typeRegistry)
public List<String> genJsSrc(SoyFileSetNode soyTree, TemplateRegistry registry, SoyIncrementalDomSrcOptions options, ErrorReporter errorReporter)
soyTree - The Soy parse tree to generate JS source code for.registry - The template registry that contains all the template information.options - The compilation options relevant to this backend.errorReporter - The Soy error reporter that collects errors during code generation.public void genJsFiles(SoyFileSetNode soyTree, TemplateRegistry templateRegistry, SoyIncrementalDomSrcOptions jsSrcOptions, String outputPathFormat, ErrorReporter errorReporter) throws IOException
soyTree - The Soy parse tree to generate JS source code for.templateRegistry - The template registry that contains all the template information.jsSrcOptions - 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.errorReporter - The Soy error reporter that collects errors during code generation.IOException - If there is an error in opening/writing an output JS file.