public final class AnnotationSpec extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
AnnotationSpec.Builder |
Modifier and Type | Field | Description |
---|---|---|
Map<String,List<CodeBlock>> |
members |
|
TypeName |
type |
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() |
public final TypeName type
public static AnnotationSpec get(Annotation annotation)
public static AnnotationSpec get(Annotation annotation, boolean includeDefaultValues)
public static AnnotationSpec get(AnnotationMirror annotation)
public static AnnotationSpec.Builder builder(ClassName type)
public static AnnotationSpec.Builder builder(Class<?> type)
public AnnotationSpec.Builder toBuilder()
Copyright © 2019 Square, Inc.. All rights reserved.