@SupportedAnnotationTypes(value="io.micronaut.context.annotation.Configuration") @Internal public class PackageConfigurationInjectProcessor extends AbstractProcessor
BeanConfiguration
implementations for
each package annotated with Configuration
.Modifier and Type | Field and Description |
---|---|
protected AnnotationUtils |
annotationUtils |
protected ClassWriterOutputVisitor |
classWriterOutputVisitor |
protected Elements |
elementUtils |
protected Filer |
filer |
protected GenericUtils |
genericUtils |
protected JavaVisitorContext |
javaVisitorContext |
protected Messager |
messager |
protected ModelUtils |
modelUtils |
protected Types |
typeUtils |
protected MutableConvertibleValues<Object> |
visitorAttributes |
processingEnv
Constructor and Description |
---|
PackageConfigurationInjectProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
error(Element e,
String msg,
Object... args)
Produce a compile error for the given element and message.
|
protected void |
error(String msg,
Object... args)
Produce a compile error for the given message.
|
SourceVersion |
getSupportedSourceVersion() |
void |
init(ProcessingEnvironment processingEnv) |
protected void |
note(Element e,
String msg,
Object... args)
Produce a compile note for the given element and message.
|
protected void |
note(String msg,
Object... args)
Produce a compile note for the given element and message.
|
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
protected void |
warning(Element e,
String msg,
Object... args)
Produce a compile warning for the given element and message.
|
protected void |
warning(String msg,
Object... args)
Produce a compile warning for the given message.
|
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
protected Messager messager
protected Filer filer
protected Elements elementUtils
protected Types typeUtils
protected AnnotationUtils annotationUtils
protected GenericUtils genericUtils
protected ModelUtils modelUtils
protected MutableConvertibleValues<Object> visitorAttributes
protected ClassWriterOutputVisitor classWriterOutputVisitor
protected JavaVisitorContext javaVisitorContext
public final void init(ProcessingEnvironment processingEnv)
public final boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
in class AbstractProcessor
protected final void error(Element e, String msg, Object... args)
e
- The elementmsg
- The messageargs
- The string format argsprotected final void error(String msg, Object... args)
msg
- The messageargs
- The string format argsprotected final void warning(Element e, String msg, Object... args)
e
- The elementmsg
- The messageargs
- The string format argsprotected final void warning(String msg, Object... args)
msg
- The messageargs
- The string format argsprotected final void note(Element e, String msg, Object... args)
e
- The elementmsg
- The messageargs
- The string format args