| Modifier and Type | Field and Description |
|---|---|
| public String | |
| public URL |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public URL | getRootDirURL()
Overrides org. |
| public void | importTemplates(Token fileNameToken)
Import template files, directories, and group files.
|
| protected CompiledST | load(String name)
Overrides org. |
| public CompiledST | loadTemplateFile(String prefix, String unqualifiedFileName)
Load .st as relative file name relative to root by |
| public URL |
| groupDirName | back to summary |
|---|---|
| public String groupDirName | |
| root | back to summary |
|---|---|
| public URL root | |
| STGroupDir | back to summary |
|---|---|
| public STGroupDir(String dirName) | |
| STGroupDir | back to summary |
|---|---|
| public STGroupDir(URL root) | |
| STGroupDir | back to summary |
|---|---|
| public STGroupDir(String dirName, char delimiterStartChar, char delimiterStopChar) | |
| STGroupDir | back to summary |
|---|---|
| public STGroupDir(String dirName, String encoding) | |
| STGroupDir | back to summary |
|---|---|
| public STGroupDir(String dirName, String encoding, char delimiterStartChar, char delimiterStopChar) | |
| STGroupDir | back to summary |
|---|---|
| public STGroupDir(URL root, String encoding, char delimiterStartChar, char delimiterStopChar) | |
| getFileName | back to summary |
|---|---|
| public String getFileName() Overrides org.
| |
| getName | back to summary |
|---|---|
| public String getName() Overrides org.
| |
| getRootDirURL | back to summary |
|---|---|
| public URL getRootDirURL() Overrides org. Doc from org. Return root dir if this is group dir; return dir containing group file if this is group file. This is derived from original incoming dir or filename. If it was absolute, this should come back as full absolute path. If only a URL is available, return URL of one dir up.
| |
| importTemplates | back to summary |
|---|---|
| public void importTemplates(Token fileNameToken) Overrides org. Doc from org. Import template files, directories, and group files.
Priority is given to templates defined in the current group;
this, in effect, provides inheritance. Polymorphism is in effect so
that if an inherited template references template Templates are loaded on-demand from import dirs. Imported groups are loaded on-demand when searching for a template. The listener of this group is passed to the import group so errors found while loading imported element are sent to listener of this group. On unload imported templates are unloaded and removed from the imports list.
This method is called when processing import statements specified in
group files. Use
| |
| load | back to summary |
|---|---|
| protected CompiledST load(String name) Overrides org. Load a template from directory or group file. Group file is given
precedence over directory with same name.
| |
| loadTemplateFile | back to summary |
|---|---|
| public CompiledST loadTemplateFile(String prefix, String unqualifiedFileName) Load .st as relative file name relative to root by | |
| normalizeURL | back to summary |
|---|---|
| public URL normalizeURL(URL url) verify there is no extra slash on the end of URL | |