Top Description Fields Constructors Methods
org.stringtemplate.v4

public Class STGroupString

extends STGroup
Class Inheritance
Imports
org.antlr.runtime.ANTLRStringStream, .CommonTokenStream, org.stringtemplate.v4.compiler.CompiledST, .GroupLexer, .GroupParser, org.stringtemplate.v4.misc.ErrorType

A group derived from a string not a file or directory.

Field Summary

Modifier and TypeField and Description
protected boolean
public String
public String
Inherited from org.stringtemplate.v4.STGroup:
adaptorsDEFAULT_ERR_MGRDEFAULT_KEYdefaultGroupdelimiterStartChardelimiterStopCharDICT_KEYdictionariesencodingerrMgrGROUP_FILE_EXTENSIONimportsimportsToClearOnUnloaditerateAcrossValuesNOT_FOUND_STrenderersTEMPLATE_FILE_EXTENSIONtemplatestrackCreationEventsverbose

Constructor Summary

AccessConstructor and Description
public
public
STGroupString(String sourceName, String text)

public
STGroupString(String sourceName, String text, char delimiterStartChar, char delimiterStopChar)

Method Summary

Modifier and TypeMethod and Description
public String
public boolean
isDefined(String name)

Overrides org.stringtemplate.v4.STGroup.isDefined.

Is this template defined in this group or from this group below?
public boolean
protected synchronized CompiledST
load(String name)

Overrides org.stringtemplate.v4.STGroup.load.

Load st from disk if directory or load whole group file if .stg file (then return just one template).
public synchronized void
load()

Overrides org.stringtemplate.v4.STGroup.load.

Force a load if it makes sense for the group.
Inherited from org.stringtemplate.v4.STGroup:
compilecreateSingletoncreateStringTemplatecreateStringTemplateInternallycreateStringTemplateInternallydefineDictionarydefineRegiondefineTemplatedefineTemplatedefineTemplatedefineTemplateAliasdefineTemplateOrRegiongetAttributeRenderergetEmbeddedInstanceOfgetImportedGroupsgetInstanceOfgetListenergetMangledRegionNamegetModelAdaptorgetNamegetRootDirURLgetTemplateNamesgetUnMangledTemplateNamegetURLimportTemplatesimportTemplatesimportTemplatesisReservedCharacterloadAbsoluteTemplateFileloadGroupFileloadTemplateFilelookupImportedTemplatelookupTemplaterawDefineTemplaterawGetDictionaryrawGetTemplateregisterModelAdaptorregisterRendererregisterRenderersetListenershowtoStringundefineTemplateunload

Field Detail

alreadyLoadedback to summary
protected boolean alreadyLoaded
sourceNameback to summary
public String sourceName
textback to summary
public String text

Constructor Detail

STGroupStringback to summary
public STGroupString(String text)
STGroupStringback to summary
public STGroupString(String sourceName, String text)
STGroupStringback to summary
public STGroupString(String sourceName, String text, char delimiterStartChar, char delimiterStopChar)

Method Detail

getFileNameback to summary
public String getFileName()

Overrides org.stringtemplate.v4.STGroup.getFileName.

Annotations
@Override
isDefinedback to summary
public boolean isDefined(String name)

Overrides org.stringtemplate.v4.STGroup.isDefined.

Doc from org.stringtemplate.v4.STGroup.isDefined.

Is this template defined in this group or from this group below? Names must be absolute, fully-qualified names like /a/b.

Annotations
@Override
isDictionaryback to summary
public boolean isDictionary(String name)

Overrides org.stringtemplate.v4.STGroup.isDictionary.

Annotations
@Override
loadback to summary
protected synchronized CompiledST load(String name)

Overrides org.stringtemplate.v4.STGroup.load.

Doc from org.stringtemplate.v4.STGroup.load.

Load st from disk if directory or load whole group file if .stg file (then return just one template). name is fully-qualified.

Annotations
@Override
loadback to summary
public synchronized void load()

Overrides org.stringtemplate.v4.STGroup.load.

Doc from org.stringtemplate.v4.STGroup.load.

Force a load if it makes sense for the group.

Annotations
@Override