Package | Description |
---|---|
org.stringtemplate.v4 | |
org.stringtemplate.v4.misc |
Modifier and Type | Field and Description |
---|---|
protected Map<Class<?>,ModelAdaptor<?>> |
STGroup.adaptors
A dictionary that allows people to register a model adaptor for
a particular kind of object (subclass or implementation).
|
Modifier and Type | Method and Description |
---|---|
<T> ModelAdaptor<? super T> |
STGroup.getModelAdaptor(Class<T> attributeType) |
Modifier and Type | Method and Description |
---|---|
<T> void |
STGroup.registerModelAdaptor(Class<T> attributeType,
ModelAdaptor<? super T> adaptor)
Add an adaptor for a kind of object so ST knows how to pull properties
from them.
|
Modifier and Type | Class and Description |
---|---|
class |
AggregateModelAdaptor
Deal with structs created via
ST.addAggr(java.lang.String, java.lang.Object...) ("structname.{prop1, prop2}", ...); . |
class |
MapModelAdaptor |
class |
ObjectModelAdaptor<T> |
class |
STModelAdaptor |
Copyright © 2022. All rights reserved.