public abstract class AbstractSoyFileSupplier extends Object implements SoyFileSupplier
Important: Do not use outside of Soy code (treat as superpackage-private).
SoyFileSupplier.Factory, SoyFileSupplier.Version| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
AbstractSoyFileSupplier(SoyFileKind soyFileKind,
String filePath) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Tests equality based on the file path.
|
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.
|
int |
hashCode()
Hashes based on the file path.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetVersion, hasChangedSince, openprotected final SoyFileKind soyFileKind
protected final String filePath
public AbstractSoyFileSupplier(SoyFileKind soyFileKind, String filePath)
soyFileKind - The kind of this input Soy file.filePath - The path to the Soy file, used for as a unique map/set key and for messages.public SoyFileKind getSoyFileKind()
SoyFileSuppliergetSoyFileKind in interface SoyFileSupplierpublic String getFilePath()
SoyFileSuppliergetFilePath in interface SoyFileSupplierpublic boolean equals(Object other)
NOTE: This will consider different file supplier implementations and different file kinds as distinct since they behave differently. The caller may want to explicitly check for filename collisions afterwards in case the same file is used with different supplier subclasses or file kinds.