com.google.template.soy.javasrc.internal
Class JavaSrcUtils
java.lang.Object
com.google.template.soy.javasrc.internal.JavaSrcUtils
public class JavaSrcUtils
- extends Object
Shared utilities specific to the Java Src backend.
Important: Do not use outside of Soy code (treat as superpackage-private).
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PKG_DATA
public static final String PKG_DATA
- See Also:
- Constant Field Values
PKG_DATA_INTERNAL
public static final String PKG_DATA_INTERNAL
- See Also:
- Constant Field Values
JavaSrcUtils
public JavaSrcUtils()
buildFilePath
public static String buildFilePath(String filePathFormat,
@Nullable
String locale,
@Nullable
String inputFilePath,
String inputPathPrefix)
- Builds a specific file path given a path format and the info needed for replacing placeholders.
- Parameters:
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.
- Returns:
- The output file path corresponding to the given input file path.