Package com.squareup.javapoet
Class AnnotationSpec
java.lang.Object
com.squareup.javapoet.AnnotationSpec
A generated annotation on a declaration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
private static class
Annotation value visitor adding members to the given builder instance. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationSpec.Builder
static AnnotationSpec.Builder
(package private) void
emit
(CodeWriter codeWriter, boolean inline) private void
emitAnnotationValues
(CodeWriter codeWriter, String whitespace, String memberSeparator, List<CodeBlock> values) boolean
static AnnotationSpec
get
(Annotation annotation) static AnnotationSpec
get
(Annotation annotation, boolean includeDefaultValues) static AnnotationSpec
get
(AnnotationMirror annotation) int
hashCode()
toString()
-
Field Details
-
type
-
members
-
-
Constructor Details
-
AnnotationSpec
-
-
Method Details
-
emit
- Throws:
IOException
-
emitAnnotationValues
private void emitAnnotationValues(CodeWriter codeWriter, String whitespace, String memberSeparator, List<CodeBlock> values) throws IOException - Throws:
IOException
-
get
-
get
-
get
-
builder
-
builder
-
toBuilder
-
equals
-
hashCode
public int hashCode() -
toString
-