public final class GeneratedAnnotationSpecs
extends java.lang.Object
@Generated annotations using JavaPoet.| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<com.squareup.javapoet.AnnotationSpec> |
generatedAnnotationSpec(javax.lang.model.util.Elements elements,
java.lang.Class<?> processorClass)
Deprecated.
|
static java.util.Optional<com.squareup.javapoet.AnnotationSpec> |
generatedAnnotationSpec(javax.lang.model.util.Elements elements,
java.lang.Class<?> processorClass,
java.lang.String comments)
Deprecated.
|
static java.util.Optional<com.squareup.javapoet.AnnotationSpec> |
generatedAnnotationSpec(javax.lang.model.util.Elements elements,
javax.lang.model.SourceVersion sourceVersion,
java.lang.Class<?> processorClass)
Returns
@Generated("processorClass" for the target SourceVersion. |
static java.util.Optional<com.squareup.javapoet.AnnotationSpec> |
generatedAnnotationSpec(javax.lang.model.util.Elements elements,
javax.lang.model.SourceVersion sourceVersion,
java.lang.Class<?> processorClass,
java.lang.String comments)
Returns
@Generated(value = "processorClass", comments = "comments" for the target
SourceVersion. |
@Deprecated
public static java.util.Optional<com.squareup.javapoet.AnnotationSpec> generatedAnnotationSpec(javax.lang.model.util.Elements elements,
java.lang.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 java.util.Optional<com.squareup.javapoet.AnnotationSpec> generatedAnnotationSpec(javax.lang.model.util.Elements elements,
java.lang.Class<?> processorClass,
java.lang.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 java.util.Optional<com.squareup.javapoet.AnnotationSpec> generatedAnnotationSpec(javax.lang.model.util.Elements elements,
javax.lang.model.SourceVersion sourceVersion,
java.lang.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 java.util.Optional<com.squareup.javapoet.AnnotationSpec> generatedAnnotationSpec(javax.lang.model.util.Elements elements,
javax.lang.model.SourceVersion sourceVersion,
java.lang.Class<?> processorClass,
java.lang.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 © 2018 Google, Inc.. All Rights Reserved.