Package org.drivine.codegen.java
Class GraphViewProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.drivine.codegen.java.GraphViewProcessor
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("org.drivine.annotation.GraphView")
@SupportedSourceVersion(RELEASE_17)
public class GraphViewProcessor
extends AbstractProcessor
Java annotation processor for generating type-safe query DSL for @GraphView classes.
This processor generates the same DSL model objects as the Kotlin KSP processor,
but with a Java-friendly builder API.
For each @GraphView, generates:
1. Properties classes for each fragment type (e.g., PersonProperties)
2. QueryDsl class that aggregates all property references
3. Static factory methods for building queries
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(ProcessingEnvironment processingEnv) booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
-
Constructor Details
-
GraphViewProcessor
public GraphViewProcessor()
-
-
Method Details
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-