Package org.jdbi.v3.generator
Class GenerateSqlObjectProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.jdbi.v3.generator.GenerateSqlObjectProcessor
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("org.jdbi.v3.sqlobject.GenerateSqlObject")
public class GenerateSqlObjectProcessor
extends AbstractProcessor
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Set<ElementKind>private Elementsprivate Filerstatic final Stringprivate Messagerprivate TypesFields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ExecutableElementprivate voidgenerateSourceFile(Element element) private static StringgetImplementationClassName(TypeElement typeElement) voidinit(ProcessingEnvironment processingEnv) booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
-
Field Details
-
GENERATE_SQL_OBJECT_ANNOTATION_NAME
- See Also:
-
ACCEPTABLE_ELEMENT_TYPES
-
elementUtils
-
typeUtils
-
filer
-
messager
-
-
Constructor Details
-
GenerateSqlObjectProcessor
public GenerateSqlObjectProcessor()
-
-
Method Details
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
generateSourceFile
-
forMethod
-
getImplementationClassName
-