public class IncrementalDomSrcMain extends Object
Important: Do not use outside of Soy code (treat as superpackage-private).
| Constructor and Description |
|---|
IncrementalDomSrcMain(GuiceSimpleScope apiCallScope,
SimplifyVisitor simplifyVisitor,
javax.inject.Provider<OptimizeBidiCodeGenVisitor> optimizeBidiCodeGenVisitorProvider,
javax.inject.Provider<GenIncrementalDomCodeVisitor> genIncrementalDomCodeVisitorProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
genJsFiles(SoyFileSetNode soyTree,
TemplateRegistry templateRegistry,
SoyJsSrcOptions 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,
SoyJsSrcOptions jsSrcOptions,
ErrorReporter errorReporter)
Generates Incremental DOM JS source code given a Soy parse tree, an options object, and an
optional bundle of translated messages.
|
@Inject public IncrementalDomSrcMain(GuiceSimpleScope apiCallScope, SimplifyVisitor simplifyVisitor, javax.inject.Provider<OptimizeBidiCodeGenVisitor> optimizeBidiCodeGenVisitorProvider, javax.inject.Provider<GenIncrementalDomCodeVisitor> genIncrementalDomCodeVisitorProvider)
apiCallScope - The scope object that manages the API call scope.simplifyVisitor - The instance of SimplifyVisitor to use.optimizeBidiCodeGenVisitorProvider - Provider for getting an instance of
OptimizeBidiCodeGenVisitor.genIncrementalDomCodeVisitorProvider - Provider for getting an instance of
GenIncrementalDomCodeVisitor.public List<String> genJsSrc(SoyFileSetNode soyTree, TemplateRegistry registry, SoyJsSrcOptions jsSrcOptions, ErrorReporter errorReporter) throws SoySyntaxException
soyTree - The Soy parse tree to generate JS source code for.jsSrcOptions - The compilation options relevant to this backend.SoySyntaxException - If a syntax error is found.public void genJsFiles(SoyFileSetNode soyTree, TemplateRegistry templateRegistry, SoyJsSrcOptions jsSrcOptions, String outputPathFormat, ErrorReporter errorReporter) throws SoySyntaxException, IOException
soyTree - The Soy parse tree to generate JS source code for.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.SoySyntaxException - If a syntax error is found.IOException - If there is an error in opening/writing an output JS file.