Package com.squareup.javapoet
Class AnnotationSpec
- java.lang.Object
-
- com.squareup.javapoet.AnnotationSpec
-
public final class AnnotationSpec extends Object
A generated annotation on a declaration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnnotationSpec.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnnotationSpec.Builder
builder(ClassName type)
static AnnotationSpec.Builder
builder(Class<?> type)
boolean
equals(Object o)
static AnnotationSpec
get(Annotation annotation)
static AnnotationSpec
get(Annotation annotation, boolean includeDefaultValues)
static AnnotationSpec
get(AnnotationMirror annotation)
int
hashCode()
AnnotationSpec.Builder
toBuilder()
String
toString()
-
-
-
Method Detail
-
get
public static AnnotationSpec get(Annotation annotation)
-
get
public static AnnotationSpec get(Annotation annotation, boolean includeDefaultValues)
-
get
public static AnnotationSpec get(AnnotationMirror annotation)
-
builder
public static AnnotationSpec.Builder builder(ClassName type)
-
builder
public static AnnotationSpec.Builder builder(Class<?> type)
-
toBuilder
public AnnotationSpec.Builder toBuilder()
-
-