Class STGroupString


  • public class STGroupString
    extends STGroup
    A group derived from a string not a file or directory.
    • Field Detail

      • sourceName

        public String sourceName
      • alreadyLoaded

        protected boolean alreadyLoaded
    • Constructor Detail

      • STGroupString

        public STGroupString​(String text)
      • STGroupString

        public STGroupString​(String sourceName,
                             String text)
      • STGroupString

        public STGroupString​(String sourceName,
                             String text,
                             char delimiterStartChar,
                             char delimiterStopChar)
    • Method Detail

      • isDefined

        public boolean isDefined​(String name)
        Description copied from class: STGroup
        Is this template defined in this group or from this group below? Names must be absolute, fully-qualified names like /a/b.
        Overrides:
        isDefined in class STGroup
      • load

        protected CompiledST load​(String name)
        Description copied from class: STGroup
        Load st from disk if directory or load whole group file if .stg file (then return just one template). name is fully-qualified.
        Overrides:
        load in class STGroup
      • load

        public void load()
        Description copied from class: STGroup
        Force a load if it makes sense for the group.
        Overrides:
        load in class STGroup