com.sun.tools.javac.processing
Class JavacProcessingEnvironment.ProcessorState

java.lang.Object
  extended by com.sun.tools.javac.processing.JavacProcessingEnvironment.ProcessorState
Enclosing class:
JavacProcessingEnvironment

static class JavacProcessingEnvironment.ProcessorState
extends java.lang.Object

State about how a processor has been used by the tool. If a processor has been used on a prior round, its process method is called on all subsequent rounds, perhaps with an empty set of annotations to process. The annotatedSupported method caches the supported annotation information from the first (and only) getSupportedAnnotationTypes call to the processor.


Field Summary
 boolean contributed
           
 Processor processor
           
private  java.util.ArrayList<java.util.regex.Pattern> supportedAnnotationPatterns
           
private  java.util.ArrayList<java.lang.String> supportedOptionNames
           
 
Constructor Summary
JavacProcessingEnvironment.ProcessorState(Processor p, Log log, Source source, ProcessingEnvironment env)
           
 
Method Summary
 boolean annotationSupported(java.lang.String annotationName)
           
private  boolean checkOptionName(java.lang.String optionName, Log log)
           
private  void checkSourceVersionCompatibility(Source source, Log log)
          Checks whether or not a processor's source version is compatible with the compilation source version.
 void removeSupportedOptions(java.util.Set<java.lang.String> unmatchedProcessorOptions)
          Remove options that are matched by this processor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processor

public Processor processor

contributed

public boolean contributed

supportedAnnotationPatterns

private java.util.ArrayList<java.util.regex.Pattern> supportedAnnotationPatterns

supportedOptionNames

private java.util.ArrayList<java.lang.String> supportedOptionNames
Constructor Detail

JavacProcessingEnvironment.ProcessorState

JavacProcessingEnvironment.ProcessorState(Processor p,
                                          Log log,
                                          Source source,
                                          ProcessingEnvironment env)
Method Detail

checkSourceVersionCompatibility

private void checkSourceVersionCompatibility(Source source,
                                             Log log)
Checks whether or not a processor's source version is compatible with the compilation source version. The processor's source version needs to be greater than or equal to the source version of the compile.


checkOptionName

private boolean checkOptionName(java.lang.String optionName,
                                Log log)

annotationSupported

public boolean annotationSupported(java.lang.String annotationName)

removeSupportedOptions

public void removeSupportedOptions(java.util.Set<java.lang.String> unmatchedProcessorOptions)
Remove options that are matched by this processor.