| Package | Description |
|---|---|
| com.google.template.soy |
Root package with main API entry point and
Guice module.
|
| com.google.template.soy.base.internal | |
| com.google.template.soy.shared |
Classes shared between multiple backends or between frontend and backend.
|
| Constructor and Description |
|---|
SoyFileSetParser(SoyTypeRegistry typeRegistry,
SoyAstCache astCache,
SyntaxVersion declaredSyntaxVersion,
List<SoyFileSupplier> soyFileSuppliers,
ErrorReporter errorReporter) |
| Modifier and Type | Class and Description |
|---|---|
class |
StableSoyFileSupplier
Record for one input Soy file.
|
class |
VolatileSoyFileSupplier
Record for one input Soy file whose content should be considered prone to change without
warning.
|
| Modifier and Type | Method and Description |
|---|---|
static SoyFileSupplier |
SoyFileSupplier.Factory.create(CharSequence content,
SoyFileKind soyFileKind,
String filePath)
Creates a new
SoyFileSupplier given the file content provided as a string, as well
as the desired file path for messages. |
static SoyFileSupplier |
SoyFileSupplier.Factory.create(com.google.common.io.CharSource contentSource,
SoyFileKind soyFileKind,
String filePath)
Creates a new
SoyFileSupplier given a CharSource for the file content,
as well as the desired file path for messages. |
static SoyFileSupplier |
SoyFileSupplier.Factory.create(File inputFile,
SoyFileKind soyFileKind)
Creates a new
SoyFileSupplier given a File. |
static SoyFileSupplier |
SoyFileSupplier.Factory.create(URL inputFileUrl,
SoyFileKind soyFileKind)
Creates a new
SoyFileSupplier given a resource URL. |
static SoyFileSupplier |
SoyFileSupplier.Factory.create(URL inputFileUrl,
SoyFileKind soyFileKind,
String filePath)
Creates a new
SoyFileSupplier given a resource URL, as well as the desired
file path for messages. |
| Constructor and Description |
|---|
ErrorPrettyPrinter(List<SoyFileSupplier> suppliers) |
| Modifier and Type | Method and Description |
|---|---|
Pair<SoyFileNode,SoyFileSupplier.Version> |
SoyAstCache.get(SoyFileSupplier supplier)
Retrieves a cached version of this file supplier AST, if any.
|
void |
SoyAstCache.put(SoyFileSupplier supplier,
SoyFileSupplier.Version version,
SoyFileNode node)
Stores a cached version of the AST.
|