@SupportedAnnotationTypes(value={"com.jogamp.gluegen.structgen.CStruct","com.jogamp.gluegen.structgen.CStructs"})
@SupportedSourceVersion(value=RELEASE_6)
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/srcOtherwise the user.dir is being used as the root path and the relative header file is appended to it. The property
jogamp.gluegen.structgen.output
allows setting a default outputPath
for the generated sources, if the ProcessingEnvironment
's structgen.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
.
Modifier and Type | Class and Description |
---|---|
static class |
CStructAnnotationProcessor.AnnotationProcessorJavaStructEmitter |
Constructor and Description |
---|
CStructAnnotationProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
init(javax.annotation.processing.ProcessingEnvironment processingEnv) |
boolean |
process(Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment env) |
public void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
init
in interface javax.annotation.processing.Processor
init
in class javax.annotation.processing.AbstractProcessor
public boolean process(Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment env)
process
in interface javax.annotation.processing.Processor
process
in class javax.annotation.processing.AbstractProcessor