| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | StringTemplateGroupInterface.
All the info we need to track for a template defined in an interface |
| Modifier and Type | Field and Description |
|---|---|
| public static StringTemplateErrorListener | |
| protected StringTemplateErrorListener | listener
Where to report errors. |
| protected String | name
What is the group name |
| protected StringTemplateGroupInterface | superInterface
Are we derived from another group? |
| protected Map | templates
Maps template name to TemplateDefinition object |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | StringTemplateGroupInterface(Reader r, StringTemplateErrorListener errors, StringTemplateGroupInterface superInterface)
Create an interface from the input stream |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public List | getMismatchedTemplates(StringTemplateGroup group)
Return a list of all template sigs that are present in the group, but that have wrong formal argument lists. |
| public List | getMissingTemplates(StringTemplateGroup group)
Return a list of all template names missing from group that are defined in this interface. |
| public String | |
| public StringTemplateGroupInterface | |
| protected String | |
| protected void | |
| public void | |
| public void | |
| public String |
| DEFAULT_ERROR_LISTENER | back to summary |
|---|---|
| public static StringTemplateErrorListener DEFAULT_ERROR_LISTENER | |
| listener | back to summary |
|---|---|
| protected StringTemplateErrorListener listener Where to report errors. All string templates in this group use this error handler by default. | |
| name | back to summary |
|---|---|
| protected String name What is the group name | |
| superInterface | back to summary |
|---|---|
| protected StringTemplateGroupInterface superInterface Are we derived from another group? Templates not found in this group will be searched for in the superGroup recursively. | |
| templates | back to summary |
|---|---|
| protected Map<K, V> templates Maps template name to TemplateDefinition object | |
| StringTemplateGroupInterface | back to summary |
|---|---|
| public StringTemplateGroupInterface(Reader r) | |
| StringTemplateGroupInterface | back to summary |
|---|---|
| public StringTemplateGroupInterface(Reader r, StringTemplateErrorListener errors) | |
| StringTemplateGroupInterface | back to summary |
|---|---|
| public StringTemplateGroupInterface(Reader r, StringTemplateErrorListener errors, StringTemplateGroupInterface superInterface) Create an interface from the input stream | |
| defineTemplate | back to summary |
|---|---|
| public void defineTemplate(String name, LinkedHashMap<K, V> formalArgs, boolean optional) | |
| error | back to summary |
|---|---|
| public void error(String msg) | |
| error | back to summary |
|---|---|
| public void error(String msg, Exception e) | |
| getMismatchedTemplates | back to summary |
|---|---|
| public List Return a list of all template sigs that are present in the group, but that have wrong formal argument lists. Return null if all is well. | |
| getMissingTemplates | back to summary |
|---|---|
| public List Return a list of all template names missing from group that are defined in this interface. Return null if all is well. | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getSuperInterface | back to summary |
|---|---|
| public StringTemplateGroupInterface getSuperInterface() | |
| getTemplateSignature | back to summary |
|---|---|
| protected String getTemplateSignature(StringTemplateGroupInterface. | |
| parseInterface | back to summary |
|---|---|
| protected void parseInterface(Reader r) | |
| setName | back to summary |
|---|---|
| public void setName(String name) | |
| setSuperInterface | back to summary |
|---|---|
| public void setSuperInterface(StringTemplateGroupInterface superInterface) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| Modifier and Type | Field and Description |
|---|---|
| public LinkedHashMap | |
| public String | |
| public boolean |
| Access | Constructor and Description |
|---|---|
| public |
| formalArgs | back to summary |
|---|---|
| public LinkedHashMap<K, V> formalArgs | |
| name | back to summary |
|---|---|
| public String name | |
| optional | back to summary |
|---|---|
| public boolean optional | |
| TemplateDefinition | back to summary |
|---|---|
| public TemplateDefinition(String name, LinkedHashMap<K, V> formalArgs, boolean optional) | |