Package io.protostuff.parser
Interface HasAnnotations
-
- All Known Implementing Classes:
AnnotationContainer
,EnumField
,EnumGroup
,EnumGroup.Value
,Extension
,Field
,Field.Bool
,Field.Bytes
,Field.Double
,Field.Fixed32
,Field.Fixed64
,Field.Float
,Field.Int32
,Field.Int64
,Field.Number
,Field.Reference
,Field.SFixed32
,Field.SFixed64
,Field.SInt32
,Field.SInt64
,Field.String
,Field.UInt32
,Field.UInt64
,Message
,MessageField
,Proto
,Service
,Service.RpcMethod
public interface HasAnnotations
An entity that containts annotations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(Annotation annotation)
Adds the annoation.boolean
addAnnotations(java.util.Map<java.lang.String,Annotation> source, boolean clearSource)
Adds all the annotations to this container.Annotation
getAnnotation(java.lang.String name)
Gets the annotation by key/name.java.util.Map<java.lang.String,Annotation>
getAnnotationMap()
Gets the annotation map.java.util.Collection<Annotation>
getAnnotations()
Gets the annotations.
-
-
-
Method Detail
-
add
void add(Annotation annotation)
Adds the annoation.
-
addAnnotations
boolean addAnnotations(java.util.Map<java.lang.String,Annotation> source, boolean clearSource)
Adds all the annotations to this container. IfclearSource
is true, thesource
arg is cleared.
-
getAnnotationMap
java.util.Map<java.lang.String,Annotation> getAnnotationMap()
Gets the annotation map.
-
getAnnotations
java.util.Collection<Annotation> getAnnotations()
Gets the annotations.
-
getAnnotation
Annotation getAnnotation(java.lang.String name)
Gets the annotation by key/name.
-
-