Package org.stringtemplate.v4
Class STGroupString
java.lang.Object
org.stringtemplate.v4.STGroup
org.stringtemplate.v4.STGroupString
A group derived from a string not a file or directory.
-
Field Summary
FieldsFields inherited from class org.stringtemplate.v4.STGroup
adaptors, DEFAULT_ERR_MGR, DEFAULT_KEY, defaultGroup, delimiterStartChar, delimiterStopChar, DICT_KEY, dictionaries, encoding, errMgr, GROUP_FILE_EXTENSION, imports, importsToClearOnUnload, iterateAcrossValues, NOT_FOUND_ST, renderers, TEMPLATE_FILE_EXTENSION, templates, trackCreationEvents, verbose
-
Constructor Summary
ConstructorsConstructorDescriptionSTGroupString
(String text) STGroupString
(String sourceName, String text) STGroupString
(String sourceName, String text, char delimiterStartChar, char delimiterStopChar) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Is this template defined in this group or from this group below? Names must be absolute, fully-qualified names like/a/b
.boolean
isDictionary
(String name) void
load()
Force a load if it makes sense for the group.protected CompiledST
Load st from disk if directory or load whole group file if .stg file (then return just one template).Methods inherited from class org.stringtemplate.v4.STGroup
compile, createSingleton, createStringTemplate, createStringTemplateInternally, createStringTemplateInternally, defineDictionary, defineRegion, defineTemplate, defineTemplate, defineTemplate, defineTemplateAlias, defineTemplateOrRegion, getAttributeRenderer, getEmbeddedInstanceOf, getImportedGroups, getInstanceOf, getListener, getMangledRegionName, getModelAdaptor, getName, getRootDirURL, getTemplateNames, getUnMangledTemplateName, getURL, importTemplates, importTemplates, importTemplates, isReservedCharacter, loadAbsoluteTemplateFile, loadGroupFile, loadTemplateFile, lookupImportedTemplate, lookupTemplate, rawDefineTemplate, rawGetDictionary, rawGetTemplate, registerModelAdaptor, registerRenderer, registerRenderer, setListener, show, toString, undefineTemplate, unload
-
Field Details
-
sourceName
-
text
-
alreadyLoaded
protected boolean alreadyLoaded
-
-
Constructor Details
-
STGroupString
-
STGroupString
-
STGroupString
-
-
Method Details
-
isDictionary
- Overrides:
isDictionary
in classSTGroup
-
isDefined
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
. -
load
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. -
load
public void load()Description copied from class:STGroup
Force a load if it makes sense for the group. -
getFileName
- Overrides:
getFileName
in classSTGroup
-