Interface Templates.PathInfo

Enclosing class:
Templates

public static sealed interface Templates.PathInfo
Resolved JStachePath config by replacing JStachePath.UNSPECIFIED with default values.
Author:
agentgt
API Note
This interface largely exists because TemplateInfo does not expose the original prefix and suffix used.
  • Method Summary

    Modifier and Type
    Method
    Description
    Resolved prefix.
    Calculates the expanded path and if the supplied path is empty then the path will be expanded based on the class name where package name are separated with a slash ("/") instead of a "." and is suffixed with ".mustache" if suffix is JStachePath.UNSPECIFIED.
    Resolved suffix.
  • Method Details

    • prefix

      Resolved prefix.
      Returns:
      prefix maybe empty but will never be JStachePath.UNSPECIFIED.
    • suffix

      Resolved suffix.
      Returns:
      suffix maybe empty but will never be JStachePath.UNSPECIFIED.
    • resolveFullPath

      Calculates the expanded path and if the supplied path is empty then the path will be expanded based on the class name where package name are separated with a slash ("/") instead of a "." and is suffixed with ".mustache" if suffix is JStachePath.UNSPECIFIED.
      Parameters:
      path - if the path is empty it will be calculated based on the modelClass package name and class name.
      Returns:
      fully resolved path with prefix and suffix.