org.peaseplate
Annotation Type Macro
@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
public @interface Macro
Signs a class or a method as macro.
If used on type level you can use the value attribute to specify
the name of the macro. If omitted, the name will be the
class name by trimming "macro" or "macros" at the end.
There is no need to use the Macro annotation on type level,
but you have to annotate the methods.
If used on method level you can use the value attribute to specify
the name of the macro method. If omitted, the name will be the
name of the method.
The annotated methods must conform the following rules:
- The method must have no return value
- The first parameter must be a
RenderContext
- The second parameter must be a
Writer
Any following parameters can be of any type and will be passed from the template.
- Author:
- Manfred HANTSCHEL
Optional Element Summary |
java.lang.String |
value
|
value
public abstract java.lang.String value
- Default:
- ""
Copyright © 2008. All Rights Reserved.