| 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.soyparse | |
| com.google.template.soy.soytree |
Soy parse tree.
|
| Modifier and Type | Method and Description |
|---|---|
SoyFileSet.Builder |
SoyFileSet.Builder.addVolatileWithKind(File inputFile,
SoyFileKind soyFileKind)
Adds an input Soy file that supports checking for modifications, given a
File. |
SoyFileSet.Builder |
SoyFileSet.Builder.addWithKind(CharSequence content,
SoyFileKind soyFileKind,
String filePath)
Adds an input Soy file, given the file content provided as a string, as well as the desired
file path for messages.
|
SoyFileSet.Builder |
SoyFileSet.Builder.addWithKind(com.google.common.io.CharSource contentSource,
SoyFileKind soyFileKind,
String filePath)
Adds an input Soy file, given a
CharSource for the file content, as well as the
desired file path for messages. |
SoyFileSet.Builder |
SoyFileSet.Builder.addWithKind(File inputFile,
SoyFileKind soyFileKind)
Adds an input Soy file, given a
File. |
SoyFileSet.Builder |
SoyFileSet.Builder.addWithKind(URL inputFileUrl,
SoyFileKind soyFileKind)
Adds an input Soy file, given a resource
URL. |
SoyFileSet.Builder |
SoyFileSet.Builder.addWithKind(URL inputFileUrl,
SoyFileKind soyFileKind,
String filePath)
Adds an input Soy file, given a resource
URL, as well as the desired file path for
messages. |
| Modifier and Type | Field and Description |
|---|---|
protected SoyFileKind |
AbstractSoyFileSupplier.soyFileKind
Whether this input file is only included because it's a dependency.
|
| Modifier and Type | Method and Description |
|---|---|
SoyFileKind |
SoyFileSupplier.getSoyFileKind()
Returns the kind of this input Soy file.
|
SoyFileKind |
AbstractSoyFileSupplier.getSoyFileKind() |
static SoyFileKind |
SoyFileKind.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SoyFileKind[] |
SoyFileKind.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| 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 |
|---|
AbstractSoyFileSupplier(SoyFileKind soyFileKind,
String filePath) |
StableSoyFileSupplier(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. |
VolatileSoyFileSupplier(File file,
SoyFileKind soyFileKind)
Creates a Soy file supplier whose content is backed by the given file which is prone to change
without warning.
|
| Constructor and Description |
|---|
SoyFileParser(SoyTypeRegistry typeRegistry,
PluginResolver pluginResolver,
IdGenerator nodeIdGen,
Reader input,
SoyFileKind soyFileKind,
String filePath,
ErrorReporter errorReporter,
com.google.common.collect.ImmutableSet<String> experimentalFeatures)
Constructor that takes a reader object providing the input.
|
| Modifier and Type | Method and Description |
|---|---|
SoyFileKind |
SoyFileNode.getSoyFileKind()
Returns the kind of this Soy file.
|
| Constructor and Description |
|---|
SoyFileNode(int id,
String filePath,
SoyFileKind soyFileKind,
NamespaceDeclaration namespaceDeclaration,
TemplateNode.SoyFileHeaderInfo headerInfo) |