|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=TYPE) @Retention(value=RUNTIME) public static @interface XTemplates.TemplateCondition
Defines a single method on an object that should be accessible from within XTemplate
conditional statements.
By default, Object.equals(Object) is defined as :equals in an XTemplate, so this is
legal:
interface TemplateUsingEquals extends XTemplates {
@XTemplate("<tpl if='o1:equals(o2)'>true</tpl>")
SafeHtml tpl(Object o1, Object o2);
}
| Required Element Summary | |
|---|---|
String |
methodName
The name of the method to invoke from a compiled template. |
Class<?> |
type
|
| Optional Element Summary | |
|---|---|
String |
name
The name of the method to define. |
| Element Detail |
|---|
public abstract Class<?> type
public abstract String methodName
type() or a superclass.
type()public abstract String name
methodName().
methodName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||