Class AnnotationSpec
java.lang.Object
com.squareup.javapoet.AnnotationSpec
A generated annotation on a declaration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classprivate static classAnnotation value visitor adding members to the given builder instance. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationSpec.Builderstatic AnnotationSpec.Builder(package private) voidemit(CodeWriter codeWriter, boolean inline) private voidemitAnnotationValues(CodeWriter codeWriter, String whitespace, String memberSeparator, List<CodeBlock> values) booleanstatic AnnotationSpecget(Annotation annotation) static AnnotationSpecget(Annotation annotation, boolean includeDefaultValues) static AnnotationSpecget(AnnotationMirror annotation) inthashCode()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
-
toString
-