javax.annotation.processing (Java SE 11 & JDK 11 ) (original) (raw)
Facilities for declaring annotation processors and for allowing annotation processors to communicate with an annotation processing tool environment.
Unless otherwise specified in a particular implementation, the collections returned by methods in this package should be expected to be unmodifiable by the caller and unsafe for concurrent access.
Unless otherwise specified, methods in this package will throw a NullPointerException
if given a null
argument.
Since:
1.6
- Interface Summary
Interface Description Completion A suggested completion for an annotation. Filer This interface supports the creation of new files by an annotation processor. Messager A Messager provides the way for an annotation processor to report error messages, warnings, and other notices. ProcessingEnvironment An annotation processing tool framework will provide an annotation processor with an object implementing this interface so the processor can use facilities provided by the framework to write new files, report error messages, and find other utilities. Processor The interface for an annotation processor. RoundEnvironment An annotation processing tool framework will provide an annotation processor with an object implementing this interface so that the processor can query for information about a round of annotation processing. - Class Summary
Class Description AbstractProcessor An abstract annotation processor designed to be a convenient superclass for most concrete annotation processors. Completions Utility class for assembling Completion objects. - Exception Summary
Exception Description FilerException Indicates a Filer detected an attempt to open a file that would violate the guarantees provided by the Filer. - Annotation Types Summary
Annotation Type Description Generated The Generated annotation is used to mark source code that has been generated. SupportedAnnotationTypes An annotation used to indicate what annotation types an annotation processor supports. SupportedOptions An annotation used to indicate what options an annotation processor supports. SupportedSourceVersion An annotation used to indicate the latest source version an annotation processor supports.
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2025, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.