Class STGroupString


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

      • sourceName

        public java.lang.String sourceName
      • text

        public java.lang.String text
      • alreadyLoaded

        protected boolean alreadyLoaded
    • Constructor Detail

      • STGroupString

        public STGroupString​(java.lang.String text)
      • STGroupString

        public STGroupString​(java.lang.String sourceName,
                             java.lang.String text)
      • STGroupString

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

      • isDictionary

        public boolean isDictionary​(java.lang.String name)
        Overrides:
        isDictionary in class STGroup
      • isDefined

        public boolean isDefined​(java.lang.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​(java.lang.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
      • getFileName

        public java.lang.String getFileName()
        Overrides:
        getFileName in class STGroup