| Constructor and Description |
|---|
Annotation(String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
LinkedHashMap<String,Object> |
getP()
Shorthand for
getParams(). |
LinkedHashMap<String,Object> |
getParams() |
<T> T |
getValue(String key) |
boolean |
isEmptyP()
Shorthand for params.isEmpty().
|
String |
toString() |
public Annotation(String name)
public LinkedHashMap<String,Object> getParams()
public final LinkedHashMap<String,Object> getP()
getParams().
If you have an annotation like @Foo(id = 1), you then can use:
<if(message.a.("Foo")>
<if(message.a.("Foo").p.("id")>
...
<endif>
<endif>
public <T> T getValue(String key)
public final boolean isEmptyP()
You can then use:
<if(message.a.("Foo").emptyP>
Note that this does not work on stringtemplate:
<if(message.a.("Foo").empty)>
Even though Map.isEmpty() exists.
Copyright © 2009–2020. All rights reserved.