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 Details

    • add

      void add(Annotation annotation)
      Adds the annoation.
    • addAnnotations

      boolean addAnnotations(Map<String,Annotation> source, boolean clearSource)
      Adds all the annotations to this container. If clearSource is true, the source arg is cleared.
    • getAnnotationMap

      Map<String,Annotation> getAnnotationMap()
      Gets the annotation map.
    • getAnnotations

      Collection<Annotation> getAnnotations()
      Gets the annotations.
    • getAnnotation

      Annotation getAnnotation(String name)
      Gets the annotation by key/name.