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 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 TypeMethodDescriptionbooleanIs this template defined in this group or from this group below? Names must be absolute, fully-qualified names like/a/b.booleanisDictionary(String name) voidload()Force a load if it makes sense for the group.protected CompiledSTLoad st from disk if directory or load whole group file if .stg file (then return just one template).Methods inherited from class 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:
isDictionaryin classSTGroup
-
isDefined
-
load
Description copied from class:STGroupLoad st from disk if directory or load whole group file if .stg file (then return just one template).nameis fully-qualified. -
load
-
getFileName
- Overrides:
getFileNamein classSTGroup
-