public class MainEntryPointUtils extends Object
Important: Do not use outside of Soy code (treat as superpackage-private).
| Modifier and Type | Method and Description |
|---|---|
static String |
buildFilePath(String filePathFormat,
String locale,
String inputFilePath,
String inputPathPrefix)
Builds a specific file path given a path format and the info needed for replacing placeholders.
|
static com.google.common.collect.Multimap<String,Integer> |
mapOutputsToSrcs(String locale,
String outputPathFormat,
String inputPathsPrefix,
com.google.common.collect.ImmutableList<SoyFileNode> fileNodes)
Maps output paths to indices of inputs that should be emitted to them.
|
public static com.google.common.collect.Multimap<String,Integer> mapOutputsToSrcs(@Nullable String locale, String outputPathFormat, String inputPathsPrefix, com.google.common.collect.ImmutableList<SoyFileNode> fileNodes)
locale - The locale for the file path, or null if not applicable.outputPathFormat - The format string defining how to format output file paths.inputPathsPrefix - The input path prefix, or empty string if none.fileNodes - A list of the SoyFileNodes being written.public static String buildFilePath(String filePathFormat, @Nullable String locale, @Nullable String inputFilePath, String inputPathPrefix)
filePathFormat - The format string defining how to build the file path.locale - The locale for the file path, or null if not applicable.inputFilePath - Only applicable if you need to replace the placeholders {INPUT_DIRECTORY},
{INPUT_FILE_NAME}, and {INPUT_FILE_NAME_NO_EXT} (otherwise pass null). This is the full
path of the input file (including the input path prefix).inputPathPrefix - The input path prefix, or empty string if none.