public abstract class AbstractOperatorAnnotationProcessor extends Object implements Processor
Modifier and Type | Field and Description |
---|---|
protected CompileEnvironment |
environment
The current compile environment.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractOperatorAnnotationProcessor()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected abstract CompileEnvironment |
createCompileEnvironment(ProcessingEnvironment processingEnv)
Creates a compile environment for this processing (for testing).
|
Iterable<? extends Completion> |
getCompletions(Element element,
AnnotationMirror annotation,
ExecutableElement member,
String userText) |
protected Collection<? extends CompileEnvironment.Support> |
getSupportedFeatures()
Returns the supported features.
|
Set<String> |
getSupportedOptions() |
SourceVersion |
getSupportedSourceVersion() |
void |
init(ProcessingEnvironment processingEnv) |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
protected abstract void |
run(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv)
Runs this annotation processor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedAnnotationTypes
protected volatile CompileEnvironment environment
protected AbstractOperatorAnnotationProcessor()
public final void init(ProcessingEnvironment processingEnv)
protected abstract CompileEnvironment createCompileEnvironment(ProcessingEnvironment processingEnv)
processingEnv
- current processing environmentpublic final Set<String> getSupportedOptions()
getSupportedOptions
in interface Processor
protected Collection<? extends CompileEnvironment.Support> getSupportedFeatures()
public final SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
public Iterable<? extends Completion> getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText)
getCompletions
in interface Processor
public final boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
protected abstract void run(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
annotations
- the target operator annotationsroundEnv
- the processing round environmentCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.