Modifier and Type | Field | Description |
---|---|---|
List<AnnotationSpec> |
FieldSpec.annotations |
|
List<AnnotationSpec> |
MethodSpec.annotations |
|
List<AnnotationSpec> |
ParameterSpec.annotations |
|
List<AnnotationSpec> |
TypeName.annotations |
|
List<AnnotationSpec> |
TypeSpec.annotations |
Modifier and Type | Method | Description |
---|---|---|
AnnotationSpec |
AnnotationSpec.Builder.build() |
|
static AnnotationSpec |
AnnotationSpec.get(Annotation annotation) |
|
static AnnotationSpec |
AnnotationSpec.get(Annotation annotation,
boolean includeDefaultValues) |
|
static AnnotationSpec |
AnnotationSpec.get(AnnotationMirror annotation) |
Modifier and Type | Method | Description |
---|---|---|
protected List<AnnotationSpec> |
TypeName.concatAnnotations(List<AnnotationSpec> annotations) |
Modifier and Type | Method | Description |
---|---|---|
FieldSpec.Builder |
FieldSpec.Builder.addAnnotation(AnnotationSpec annotationSpec) |
|
MethodSpec.Builder |
MethodSpec.Builder.addAnnotation(AnnotationSpec annotationSpec) |
|
ParameterSpec.Builder |
ParameterSpec.Builder.addAnnotation(AnnotationSpec annotationSpec) |
|
TypeSpec.Builder |
TypeSpec.Builder.addAnnotation(AnnotationSpec annotationSpec) |
|
TypeName |
TypeName.annotated(AnnotationSpec... annotations) |
Copyright © 2019 Square, Inc.. All rights reserved.