/** * Adds an input Soy file, given a resource {@code URL}. * * <p>Important: This function assumes that the desired file path is returned by {@code * inputFileUrl.toString()}. If this is not the case, please use {@link #addWithKind(URL, * SoyFileKind, String)} instead. * * @see #addWithKind(URL, SoyFileKind, String) * @param inputFileUrl The Soy file. * @param soyFileKind The kind of this input Soy file. * @return This builder. */ public Builder addWithKind(URL inputFileUrl, SoyFileKind soyFileKind) { return addFile(SoyFileSupplier.Factory.create(inputFileUrl, soyFileKind)); }
/** * Adds an input Soy file, given a resource {@code URL}. * * <p>Important: This function assumes that the desired file path is returned by {@code * inputFileUrl.toString()}. If this is not the case, please use {@link #addWithKind(URL, * SoyFileKind, String)} instead. * * @see #addWithKind(URL, SoyFileKind, String) * @param inputFileUrl The Soy file. * @param soyFileKind The kind of this input Soy file. * @return This builder. */ public Builder addWithKind(URL inputFileUrl, SoyFileKind soyFileKind) { return addFile(SoyFileSupplier.Factory.create(inputFileUrl, soyFileKind)); }
/** * Adds an input Soy file that supports checking for modifications, given a {@code File}. * * <p>Note: This does nothing by itself. It should be used in conjunction with a feature that * actually checks for volatile files. Currently, that feature is {@link * #setSoyAstCache(SoyAstCache)}. * * @param inputFile The Soy file. * @param soyFileKind The kind of this input Soy file. * @return This builder. */ public Builder addVolatileWithKind(File inputFile, SoyFileKind soyFileKind) { return addFile(new VolatileSoyFileSupplier(inputFile, soyFileKind)); }
/** * Adds an input Soy file that supports checking for modifications, given a {@code File}. * * <p>Note: This does nothing by itself. It should be used in conjunction with a feature that * actually checks for volatile files. Currently, that feature is {@link * #setSoyAstCache(SoyAstCache)}. * * @param inputFile The Soy file. * @param soyFileKind The kind of this input Soy file. * @return This builder. */ public Builder addVolatileWithKind(File inputFile, SoyFileKind soyFileKind) { return addFile(new VolatileSoyFileSupplier(inputFile, soyFileKind)); }
/** * Adds an input Soy file, given the file content provided as a string, as well as the desired * file path for messages. * * @param content The Soy file content. * @param soyFileKind The kind of this input Soy file. * @param filePath The path to the Soy file (used for messages only). * @return This builder. */ public Builder addWithKind(CharSequence content, SoyFileKind soyFileKind, String filePath) { return addFile(SoyFileSupplier.Factory.create(content, soyFileKind, filePath)); }
/** * Adds an input Soy file, given a resource {@code URL}, as well as the desired file path for * messages. * * @param inputFileUrl The Soy file. * @param soyFileKind The kind of this input Soy file. * @param filePath The path to the Soy file (used for messages only). * @return This builder. */ public Builder addWithKind(URL inputFileUrl, SoyFileKind soyFileKind, String filePath) { return addFile(SoyFileSupplier.Factory.create(inputFileUrl, soyFileKind, filePath)); }
/** * Adds an input Soy file, given a resource {@code URL}, as well as the desired file path for * messages. * * @param inputFileUrl The Soy file. * @param soyFileKind The kind of this input Soy file. * @param filePath The path to the Soy file (used for messages only). * @return This builder. */ public Builder addWithKind(URL inputFileUrl, SoyFileKind soyFileKind, String filePath) { return addFile(SoyFileSupplier.Factory.create(inputFileUrl, soyFileKind, filePath)); }
/** * Adds an input Soy file, given a {@code File}. * * @param inputFile The Soy file. * @param soyFileKind The kind of this input Soy file. * @return This builder. */ public Builder addWithKind(File inputFile, SoyFileKind soyFileKind) { return addFile(SoyFileSupplier.Factory.create(inputFile, soyFileKind)); }
/** * Adds an input Soy file, given a {@code CharSource} for the file content, as well as the * desired file path for messages. * * @param contentSource Source for the Soy file content. * @param soyFileKind The kind of this input Soy file. * @param filePath The path to the Soy file (used for messages only). * @return This builder. */ public Builder addWithKind(CharSource contentSource, SoyFileKind soyFileKind, String filePath) { return addFile(SoyFileSupplier.Factory.create(contentSource, soyFileKind, filePath)); }
/** * Adds an input Soy file, given a {@code File}. * * @param inputFile The Soy file. * @param soyFileKind The kind of this input Soy file. * @return This builder. */ public Builder addWithKind(File inputFile, SoyFileKind soyFileKind) { return addFile(SoyFileSupplier.Factory.create(inputFile, soyFileKind)); }
/** * Adds an input Soy file, given the file content provided as a string, as well as the desired * file path for messages. * * @param content The Soy file content. * @param soyFileKind The kind of this input Soy file. * @param filePath The path to the Soy file (used for messages only). * @return This builder. */ public Builder addWithKind(CharSequence content, SoyFileKind soyFileKind, String filePath) { return addFile(SoyFileSupplier.Factory.create(content, soyFileKind, filePath)); }
/** * Adds an input Soy file, given a {@code CharSource} for the file content, as well as the * desired file path for messages. * * @param contentSource Source for the Soy file content. * @param soyFileKind The kind of this input Soy file. * @param filePath The path to the Soy file (used for messages only). * @return This builder. */ public Builder addWithKind(CharSource contentSource, SoyFileKind soyFileKind, String filePath) { return addFile(SoyFileSupplier.Factory.create(contentSource, soyFileKind, filePath)); }