Class AnnotationSpec


  • public final class AnnotationSpec
    extends java.lang.Object
    A generated annotation on a declaration.
    • Field Detail

      • members

        public final java.util.Map<java.lang.String,​java.util.List<CodeBlock>> members
    • Method Detail

      • emit

        void emit​(CodeWriter codeWriter,
                  boolean inline)
           throws java.io.IOException
        Throws:
        java.io.IOException
      • emitAnnotationValues

        private void emitAnnotationValues​(CodeWriter codeWriter,
                                          java.lang.String whitespace,
                                          java.lang.String memberSeparator,
                                          java.util.List<CodeBlock> values)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • get

        public static AnnotationSpec get​(java.lang.annotation.Annotation annotation)
      • get

        public static AnnotationSpec get​(java.lang.annotation.Annotation annotation,
                                         boolean includeDefaultValues)
      • get

        public static AnnotationSpec get​(javax.lang.model.element.AnnotationMirror annotation)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object