|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.template.soy.base.VolatileSoyFileSupplier
public class VolatileSoyFileSupplier
Record for one input Soy file whose content should be considered prone to change without warning.
Important: Do not use outside of Soy code (treat as superpackage-private).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.google.template.soy.base.SoyFileSupplier |
|---|
SoyFileSupplier.Factory, SoyFileSupplier.Version |
| Field Summary | |
|---|---|
protected String |
filePath
Returns the file path (used for messages only). |
protected SoyFileKind |
soyFileKind
Whether this input file is only included because it's a dependency. |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
String |
getFilePath()
Returns the file path (used for messages only). |
SoyFileKind |
getSoyFileKind()
Returns the kind of this input Soy file. |
boolean |
hasChangedSince(SoyFileSupplier.Version version)
True if the underlying resource has changed since the given version. |
Pair<Reader,SoyFileSupplier.Version> |
open()
Returns a Reader for the Soy file content and the version of the file read. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final SoyFileKind soyFileKind
protected final String filePath
| Constructor Detail |
|---|
public VolatileSoyFileSupplier(File file,
SoyFileKind soyFileKind)
file - The underlying file to read.soyFileKind - The kind of this input Soy file.| Method Detail |
|---|
public boolean hasChangedSince(SoyFileSupplier.Version version)
SoyFileSupplier
public Pair<Reader,SoyFileSupplier.Version> open()
throws IOException
SoyFileSupplierReader for the Soy file content and the version of the file read.
IOException - If there is an error opening the input.public SoyFileKind getSoyFileKind()
SoyFileSupplier
getSoyFileKind in interface SoyFileSupplierpublic String getFilePath()
SoyFileSupplier
getFilePath in interface SoyFileSupplier
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||