Class STGroupString

java.lang.Object
org.stringtemplate.v4.STGroup
org.stringtemplate.v4.STGroupString

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

    • sourceName

      public String sourceName
    • text

      public String text
    • alreadyLoaded

      protected boolean alreadyLoaded
  • Constructor Details

    • STGroupString

      public STGroupString(String text)
    • STGroupString

      public STGroupString(String sourceName, String text)
    • STGroupString

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

    • isDictionary

      public boolean isDictionary(String name)
      Overrides:
      isDictionary in class STGroup
    • 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
    • getFileName

      public String getFileName()
      Overrides:
      getFileName in class STGroup