public interface SoyFileSupplier
Important: Do not use outside of Soy code (treat as superpackage-private).
TODO(lukes): This should either be a subtype of CharSource or hold a CharSource
| Modifier and Type | Interface and Description |
|---|---|
static class |
SoyFileSupplier.Factory
Container for factory methods for
SoyFileSuppliers. |
static interface |
SoyFileSupplier.Version
An opaque identifier that can be compared for equality with other versions from the same
resource.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.io.CharSource |
asCharSource()
View this supplier as a
CharSource. |
String |
getFilePath()
Returns the path to the Soy file, used for as a unique map/set key and for messages.
|
SoyFileKind |
getSoyFileKind()
Returns the kind of this input Soy file.
|
SoyFileSupplier.Version |
getVersion()
Returns the version of the Soy file read.
|
boolean |
hasChangedSince(SoyFileSupplier.Version version)
True if the underlying resource has changed since the given version.
|
Reader |
open()
Returns a
Reader for the Soy file content. |
com.google.common.io.CharSource asCharSource()
CharSource.Reader open() throws IOException
Reader for the Soy file content.IOException - If there is an error opening the input.boolean hasChangedSince(SoyFileSupplier.Version version)
SoyFileKind getSoyFileKind()
String getFilePath()
SoyFileSupplier.Version getVersion()