|
terp - the Codemesh Modular Template Interpreter v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Transformer<T>
The interface used to transform an item into another item, for example in collection enumerators etc.
| Nested Class Summary | |
|---|---|
static class |
Transformer.AbstractTransformer<T>
|
static class |
Transformer.LineBreaker
|
| Field Summary | |
|---|---|
static java.util.List<java.lang.Object> |
NO_ARGS
|
static java.lang.String[] |
NO_PARAM_NAMES
|
| Method Summary | |
|---|---|
java.lang.String |
getItemName()
Returns the name used for the item that is being transformed. |
java.lang.String[] |
getParamNames()
Returns the parameter names. |
T |
transform(java.lang.Object item)
Transforms an item into another item of a specified type. |
T |
transform(java.lang.Object item,
java.util.List<java.lang.Object> args)
Transforms an item into another item, taking optional arguments into account. |
T |
transform(java.lang.Object item,
java.util.List<java.lang.Object> args,
TerpContext ctx)
Transforms an item into another item, taking optional arguments into account. |
| Field Detail |
|---|
static final java.util.List<java.lang.Object> NO_ARGS
static final java.lang.String[] NO_PARAM_NAMES
| Method Detail |
|---|
java.lang.String getItemName()
java.lang.String[] getParamNames()
T transform(java.lang.Object item)
item - the item to transform.
T transform(java.lang.Object item,
java.util.List<java.lang.Object> args)
item - the item to transform.args - the optional arguments.
T transform(java.lang.Object item,
java.util.List<java.lang.Object> args,
TerpContext ctx)
item - the item to transform.args - the optional arguments.ctx - the context in which the transformation occurs.
|
terp - the Codemesh Modular Template Interpreter v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||