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
Modifier and TypeMethodDescriptionvoidadd(Annotation annotation) Adds the annoation.booleanaddAnnotations(Map<String, Annotation> source, boolean clearSource) Adds all the annotations to this container.getAnnotation(String name) Gets the annotation by key/name.Gets the annotation map.Gets the annotations.
-
Method Details
-
add
Adds the annoation. -
addAnnotations
Adds all the annotations to this container. IfclearSourceis true, thesourcearg is cleared. -
getAnnotationMap
Map<String,Annotation> getAnnotationMap()Gets the annotation map. -
getAnnotations
Collection<Annotation> getAnnotations()Gets the annotations. -
getAnnotation
Gets the annotation by key/name.
-