public static final class PassManager.Builder extends Object
| Constructor and Description |
|---|
PassManager.Builder() |
| Modifier and Type | Method and Description |
|---|---|
PassManager.Builder |
allowUnknownFunctions()
Allows unknown functions.
|
PassManager.Builder |
allowUnknownGlobals()
Allows unknown global references.
|
PassManager |
build() |
PassManager.Builder |
setDeclaredSyntaxVersion(SyntaxVersion declaredSyntaxVersion) |
PassManager.Builder |
setErrorReporter(ErrorReporter errorReporter) |
PassManager.Builder |
setGeneralOptions(SoyGeneralOptions opts) |
PassManager.Builder |
setSoyFunctionMap(com.google.common.collect.ImmutableMap<String,? extends SoyFunction> functionMap) |
PassManager.Builder |
setTypeRegistry(SoyTypeRegistry registry) |
public PassManager.Builder setErrorReporter(ErrorReporter errorReporter)
public PassManager.Builder setSoyFunctionMap(com.google.common.collect.ImmutableMap<String,? extends SoyFunction> functionMap)
public PassManager.Builder setTypeRegistry(SoyTypeRegistry registry)
public PassManager.Builder setDeclaredSyntaxVersion(SyntaxVersion declaredSyntaxVersion)
public PassManager.Builder setGeneralOptions(SoyGeneralOptions opts)
public PassManager.Builder allowUnknownGlobals()
This option is only available for backwards compatibility with legacy js only templates and for parseinfo generation.
public PassManager.Builder allowUnknownFunctions()
This option is only available for the parseinfo generator which historically has not had proper build dependencies and thus often references unknown functions.
public PassManager build()