Modifier and Type | Field and Description |
---|---|
java.util.List<AnnotationSpec> |
FieldSpec.annotations |
private java.util.List<AnnotationSpec> |
FieldSpec.Builder.annotations |
java.util.List<AnnotationSpec> |
MethodSpec.annotations |
private java.util.List<AnnotationSpec> |
MethodSpec.Builder.annotations |
java.util.List<AnnotationSpec> |
TypeName.annotations |
java.util.List<AnnotationSpec> |
ParameterSpec.annotations |
private java.util.List<AnnotationSpec> |
ParameterSpec.Builder.annotations |
java.util.List<AnnotationSpec> |
TypeSpec.annotations |
private java.util.List<AnnotationSpec> |
TypeSpec.Builder.annotations |
Modifier and Type | Method and Description |
---|---|
AnnotationSpec |
AnnotationSpec.Builder.build() |
static AnnotationSpec |
AnnotationSpec.get(java.lang.annotation.Annotation annotation) |
static AnnotationSpec |
AnnotationSpec.get(java.lang.annotation.Annotation annotation,
boolean includeDefaultValues) |
static AnnotationSpec |
AnnotationSpec.get(javax.lang.model.element.AnnotationMirror annotation) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<AnnotationSpec> |
TypeName.concatAnnotations(java.util.List<AnnotationSpec> annotations) |
Modifier and Type | Method and 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) |
Modifier and Type | Method and Description |
---|---|
FieldSpec.Builder |
FieldSpec.Builder.addAnnotations(java.lang.Iterable<AnnotationSpec> annotationSpecs) |
MethodSpec.Builder |
MethodSpec.Builder.addAnnotations(java.lang.Iterable<AnnotationSpec> annotationSpecs) |
ParameterSpec.Builder |
ParameterSpec.Builder.addAnnotations(java.lang.Iterable<AnnotationSpec> annotationSpecs) |
TypeSpec.Builder |
TypeSpec.Builder.addAnnotations(java.lang.Iterable<AnnotationSpec> annotationSpecs) |
ParameterizedTypeName |
ParameterizedTypeName.annotated(java.util.List<AnnotationSpec> annotations) |
ArrayTypeName |
ArrayTypeName.annotated(java.util.List<AnnotationSpec> annotations) |
TypeName |
TypeName.annotated(java.util.List<AnnotationSpec> annotations) |
WildcardTypeName |
WildcardTypeName.annotated(java.util.List<AnnotationSpec> annotations) |
ClassName |
ClassName.annotated(java.util.List<AnnotationSpec> annotations) |
TypeVariableName |
TypeVariableName.annotated(java.util.List<AnnotationSpec> annotations) |
protected java.util.List<AnnotationSpec> |
TypeName.concatAnnotations(java.util.List<AnnotationSpec> annotations) |
void |
CodeWriter.emitAnnotations(java.util.List<AnnotationSpec> annotations,
boolean inline) |
Constructor and Description |
---|
ArrayTypeName(TypeName componentType,
java.util.List<AnnotationSpec> annotations) |
ClassName(java.util.List<java.lang.String> names,
java.util.List<AnnotationSpec> annotations) |
ParameterizedTypeName(ParameterizedTypeName enclosingType,
ClassName rawType,
java.util.List<TypeName> typeArguments,
java.util.List<AnnotationSpec> annotations) |
TypeName(java.util.List<AnnotationSpec> annotations) |
TypeName(java.lang.String keyword,
java.util.List<AnnotationSpec> annotations) |
TypeVariableName(java.lang.String name,
java.util.List<TypeName> bounds,
java.util.List<AnnotationSpec> annotations) |
WildcardTypeName(java.util.List<TypeName> upperBounds,
java.util.List<TypeName> lowerBounds,
java.util.List<AnnotationSpec> annotations) |