| Package | Description |
|---|---|
| org.stringtemplate.v4 |
| Modifier and Type | Class and Description |
|---|---|
class |
DateRenderer
A renderer for
Date and Calendar objects. |
class |
NumberRenderer
Works with
Byte, Short, Integer, Long, and BigInteger as well as
Float, Double, and BigDecimal. |
class |
StringRenderer
This render knows to perform a few format operations on
String objects:
upper: Convert to upper case.
lower: Convert to lower case.
cap: Convert first character to upper case.
url-encode:
xml-encode:
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.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.
|
| Modifier and Type | Method and Description |
|---|---|
<T> AttributeRenderer<? super T> |
STGroup.getAttributeRenderer(java.lang.Class<T> attributeType)
Get renderer for class
T associated with this group. |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
STGroup.registerRenderer(java.lang.Class<T> attributeType,
AttributeRenderer<? super T> r)
Register a renderer for all objects of a particular "kind" for all
templates evaluated relative to this group.
|
<T> void |
STGroup.registerRenderer(java.lang.Class<T> attributeType,
AttributeRenderer<? super T> r,
boolean recursive) |
Copyright © 2020. All Rights Reserved.