| Package | Description |
|---|---|
| org.stringtemplate.v4 |
| Modifier and Type | Class and Description |
|---|---|
class |
DateRenderer
|
class |
NumberRenderer
|
class |
StringRenderer
This render knows to perform a few format operations on
String objects:
upper: Convert to upper case. |
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class<?>,AttributeRenderer> |
STGroup.renderers
A dictionary that allows people to register a renderer for
a particular kind of object for any template evaluated relative to this
group.
|
protected Map<Class<?>,AttributeRenderer> |
STGroup.typeToRendererCache
Cache exact attribute type to
AttributeRenderer object. |
| Modifier and Type | Method and Description |
|---|---|
AttributeRenderer |
STGroup.getAttributeRenderer(Class<?> attributeType)
Get renderer for class
T associated with this group. |
| Modifier and Type | Method and Description |
|---|---|
void |
STGroup.registerRenderer(Class<?> attributeType,
AttributeRenderer r)
Register a renderer for all objects of a particular "kind" for all
templates evaluated relative to this group.
|
void |
STGroup.registerRenderer(Class<?> attributeType,
AttributeRenderer r,
boolean recursive) |
Copyright © 2013. All Rights Reserved.