@SupportedOptions(value={"com.sun.tools.javac.sym.Jar","com.sun.tools.javac.sym.Dest","com.sun.tools.javac.sym.Profiles"}) @SupportedAnnotationTypes(value="*") public class CreateSymbols extends AbstractProcessor
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
processingEnv
Constructor and Description |
---|
CreateSymbols() |
Modifier and Type | Method and Description |
---|---|
SourceVersion |
getSupportedSourceVersion()
If the processor class is annotated with
SupportedSourceVersion , return the source version in the
annotation. |
static void |
main(String... args) |
boolean |
process(Set<? extends TypeElement> tes,
RoundEnvironment renv)
Processes a set of annotation types on type elements
originating from the prior round and returns whether or not
these annotation types are claimed by this processor.
|
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitialized
public boolean process(Set<? extends TypeElement> tes, RoundEnvironment renv)
AbstractProcessor
true
is returned, the annotation types are claimed and subsequent
processors will not be asked to process them; if false
is returned, the annotation types are unclaimed and subsequent
processors may be asked to process them. A processor may
always return the same boolean value or may vary the result
based on chosen criteria.
The input set will be empty if the processor supports "*"
and the root elements have no annotations. A Processor
must gracefully handle an empty set of annotations.
process
in interface Processor
process
in class AbstractProcessor
tes
- the annotation types requested to be processedrenv
- environment for information about the current and prior roundpublic SourceVersion getSupportedSourceVersion()
AbstractProcessor
SupportedSourceVersion
, return the source version in the
annotation. If the class is not so annotated, SourceVersion.RELEASE_6
is returned.getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
in class AbstractProcessor
SupportedSourceVersion
,
ProcessingEnvironment.getSourceVersion()
public static void main(String... args)
Copyright © 2015. All rights reserved.