public final class GeneratedAnnotationSpecs extends Object
@Generated
annotations using JavaPoet.Modifier and Type | Method and Description |
---|---|
static Optional<com.squareup.javapoet.AnnotationSpec> |
generatedAnnotationSpec(Elements elements,
Class<?> processorClass)
Deprecated.
|
static Optional<com.squareup.javapoet.AnnotationSpec> |
generatedAnnotationSpec(Elements elements,
Class<?> processorClass,
String comments)
Deprecated.
|
static Optional<com.squareup.javapoet.AnnotationSpec> |
generatedAnnotationSpec(Elements elements,
SourceVersion sourceVersion,
Class<?> processorClass)
Returns
@Generated("processorClass" for the target SourceVersion . |
static Optional<com.squareup.javapoet.AnnotationSpec> |
generatedAnnotationSpec(Elements elements,
SourceVersion sourceVersion,
Class<?> processorClass,
String comments)
Returns
@Generated(value = "processorClass", comments = "comments" for the target
SourceVersion . |
@Deprecated public static Optional<com.squareup.javapoet.AnnotationSpec> generatedAnnotationSpec(Elements elements, Class<?> processorClass)
generatedAnnotationSpec(Elements, SourceVersion, Class)
@Generated("processorClass"
if either javax.annotation.processing.Generated
or javax.annotation.Generated
is available at compile time.@Deprecated public static Optional<com.squareup.javapoet.AnnotationSpec> generatedAnnotationSpec(Elements elements, Class<?> processorClass, String comments)
generatedAnnotationSpec(Elements, SourceVersion, Class, String)
@Generated(value = "processorClass", comments = "comments"
if either javax.annotation.processing.Generated
or javax.annotation.Generated
is available at compile time.public static Optional<com.squareup.javapoet.AnnotationSpec> generatedAnnotationSpec(Elements elements, SourceVersion sourceVersion, Class<?> processorClass)
@Generated("processorClass"
for the target SourceVersion
.
Returns javax.annotation.processing.Generated
for JDK 9 and newer, javax.annotation.Generated
for earlier releases, and Optional#empty()} if the annotation is
not available.
public static Optional<com.squareup.javapoet.AnnotationSpec> generatedAnnotationSpec(Elements elements, SourceVersion sourceVersion, Class<?> processorClass, String comments)
@Generated(value = "processorClass", comments = "comments"
for the target
SourceVersion
.
Returns javax.annotation.processing.Generated
for JDK 9 and newer, javax.annotation.Generated
for earlier releases, and Optional#empty()} if the annotation is
not available.
Copyright © 2020. All rights reserved.