Package com.jogamp.gluegen.structgen
Class CStructAnnotationProcessor
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- com.jogamp.gluegen.structgen.CStructAnnotationProcessor
-
- All Implemented Interfaces:
javax.annotation.processing.Processor
@SupportedAnnotationTypes({"com.jogamp.gluegen.structgen.CStruct","com.jogamp.gluegen.structgen.CStructs"}) @SupportedSourceVersion(RELEASE_11) public class CStructAnnotationProcessor extends javax.annotation.processing.AbstractProcessor
If the header file is absolute, the root path is the parent folder of the folder containing the package source, i.e.:
Header: /gluegen/src/junit/com/jogamp/test/structgen/TestStruct01.h Root: /gluegen/src/junit/.. Root: /gluegen/src
Otherwise the user.dir is being used as the root path and the relative header file is appended to it. The propertyjogamp.gluegen.structgen.output
allows setting a default outputPath for the generated sources, if theProcessingEnvironment
'sstructgen.output
option is not set.If the outputPath is relative, it is appended to the root path, otherwise it is taken as-is.
User can enable DEBUG while defining property
jogamp.gluegen.structgen.debug
.- Author:
- Michael Bien, et al.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CStructAnnotationProcessor.AnnotationProcessorJavaStructEmitter
-
Constructor Summary
Constructors Constructor Description CStructAnnotationProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(javax.annotation.processing.ProcessingEnvironment processingEnv)
boolean
process(Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment env)
-
-
-
Method Detail
-
init
public void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
- Specified by:
init
in interfacejavax.annotation.processing.Processor
- Overrides:
init
in classjavax.annotation.processing.AbstractProcessor
-
process
public boolean process(Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment env)
- Specified by:
process
in interfacejavax.annotation.processing.Processor
- Specified by:
process
in classjavax.annotation.processing.AbstractProcessor
-
-