Package io.protostuff.parser
Class Annotation
java.lang.Object
io.protostuff.parser.Annotation
- All Implemented Interfaces:
HasName
Annotation for messages, enums, services, rpc, fields
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final String
(package private) final LinkedHashMap
<String, Object> (package private) final LinkedHashMap
<String, Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
final LinkedHashMap
<String, Object> getP()
Shorthand forgetParams()
.<T> T
final boolean
isEmptyP()
Shorthand for params.isEmpty().(package private) void
(package private) void
toString()
-
Field Details
-
name
-
refs
-
params
-
-
Constructor Details
-
Annotation
-
-
Method Details
-
getParams
-
getP
Shorthand forgetParams()
.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>
-
put
-
putRef
-
getValue
-
getName
-
isEmptyP
public final boolean isEmptyP()Shorthand for params.isEmpty().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. -
toString
-