public final class GeneratedAnnotations
extends java.lang.Object
@Generated annotations.| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<javax.lang.model.element.TypeElement> |
generatedAnnotation(javax.lang.model.util.Elements elements)
Returns the element corresponding to the version of the
@Generated annotation present
in the compile-time class- or module-path. |
public static java.util.Optional<javax.lang.model.element.TypeElement> generatedAnnotation(javax.lang.model.util.Elements elements)
@Generated annotation present
in the compile-time class- or module-path.
First looks for javax.annotation.processing.Generated, and then javax.annotation.Generated. Returns whichever is in the classpath (or modulepath), or Optional.empty() if neither is.
Copyright © 2017 Google, Inc.. All Rights Reserved.