Package cz.cvut.kbss.jopa.modelgen
Class ModelGenProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
cz.cvut.kbss.jopa.modelgen.ModelGenProcessor
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes({"cz.cvut.kbss.jopa.model.annotations.OWLClass","cz.cvut.kbss.jopa.model.annotations.MappedSuperclass"})
@SupportedOptions({"outputDirectory","sourcePackage","debugOption"})
public class ModelGenProcessor
extends AbstractProcessor
Annotation processor that finds JOPA entities and mapped superclasses and generates a static metamodel based on
them.
-
Field Summary
FieldsFields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
isAnnotatedWithNonEntity
(Element element) boolean
process
(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
-
Field Details
-
OUTPUT_DIRECTORY_PARAM
- See Also:
-
SOURCE_PACKAGE_PARAM
- See Also:
-
DEBUG_PARAM
- See Also:
-
-
Constructor Details
-
ModelGenProcessor
public ModelGenProcessor()
-
-
Method Details
-
init
- Specified by:
init
in interfaceProcessor
- Overrides:
init
in classAbstractProcessor
-
process
- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersion
in interfaceProcessor
- Overrides:
getSupportedSourceVersion
in classAbstractProcessor
-
isAnnotatedWithNonEntity
-