public final class SoyFileSetParser extends Object
SoyFileSetNode.
Important: Do not use outside of Soy code (treat as superpackage-private).
| Constructor and Description |
|---|
SoyFileSetParser(SoyTypeRegistry typeRegistry,
SoyAstCache astCache,
SyntaxVersion declaredSyntaxVersion,
List<SoyFileSupplier> soyFileSuppliers) |
SoyFileSetParser(SoyTypeRegistry typeRegistry,
SoyAstCache astCache,
SyntaxVersion declaredSyntaxVersion,
SoyFileSupplier... soyFileSuppliers) |
| Modifier and Type | Method and Description |
|---|---|
ParseResult<SoyFileSetNode> |
parse()
Parses a set of Soy files, returning a structure containing the parse tree and any errors.
|
SoyFileSetParser |
setDoCheckOverrides(boolean doCheckOverrides)
Sets whether to check overrides.
|
SoyFileSetParser |
setDoRunCheckingPasses(boolean doRunCheckingPasses)
Sets whether to run checking passes.
|
SoyFileSetParser |
setDoRunInitialParsingPasses(boolean doRunInitialParsingPasses)
Sets whether to run initial parsing passes.
|
public SoyFileSetParser(SoyTypeRegistry typeRegistry, @Nullable SoyAstCache astCache, SyntaxVersion declaredSyntaxVersion, SoyFileSupplier... soyFileSuppliers)
typeRegistry - The type registry to resolve type names.astCache - The AST cache to use, if any.declaredSyntaxVersion - User-declared syntax version.soyFileSuppliers - The suppliers for the Soy files.public SoyFileSetParser(SoyTypeRegistry typeRegistry, @Nullable SoyAstCache astCache, SyntaxVersion declaredSyntaxVersion, List<SoyFileSupplier> soyFileSuppliers)
typeRegistry - The type registry to resolve type names.astCache - The AST cache to use, if any.declaredSyntaxVersion - User-declared syntax version.soyFileSuppliers - The suppliers for the Soy files. Each must have a unique file name.public SoyFileSetParser setDoRunInitialParsingPasses(boolean doRunInitialParsingPasses)
public SoyFileSetParser setDoRunCheckingPasses(boolean doRunCheckingPasses)
public SoyFileSetParser setDoCheckOverrides(boolean doCheckOverrides)
public ParseResult<SoyFileSetNode> parse()