Package io.aeron.utility
Class Processor
java.lang.Object
javax.annotation.processing.AbstractProcessor
io.aeron.utility.Processor
- All Implemented Interfaces:
Processor
- Direct Known Subclasses:
ConfigProcessor
,CounterProcessor
abstract processor
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
doProcess
(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Process annotations.protected void
On error hook.protected void
Error hook with extra context.protected String
getDocComment
(Element element) Get doc comment.protected abstract String
Get enabled property name.protected abstract String
Get fail on error property name.protected abstract String
Get print notes property name.void
init
(ProcessingEnvironment processingEnv) protected void
Add a note.protected void
Add note to an element.boolean
process
(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
-
Constructor Details
-
Processor
public Processor()
-
-
Method Details
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersion
in interfaceProcessor
- Overrides:
getSupportedSourceVersion
in classAbstractProcessor
-
init
- Specified by:
init
in interfaceProcessor
- Overrides:
init
in classAbstractProcessor
-
getEnabledPropertyName
Get enabled property name.- Returns:
- enabled property name.
-
getPrintNotesPropertyName
Get print notes property name.- Returns:
- print notes property name.
-
getFailOnErrorPropertyName
Get fail on error property name.- Returns:
- fail on error property name.
-
doProcess
protected abstract void doProcess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Process annotations.- Parameters:
annotations
- to be processed.roundEnv
- environment info.
-
process
- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
-
getDocComment
Get doc comment.- Parameters:
element
- element.- Returns:
- comment.
-
error
On error hook.- Parameters:
errMsg
- string.
-
error
Error hook with extra context.- Parameters:
errMsg
- message.element
- element.
-
note
Add a note.- Parameters:
msg
- note.
-
note
Add note to an element.- Parameters:
msg
- note.element
- element.
-