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 |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final boolean | |
| private static final String | |
| private Elements | |
| private Filer | |
| private static final Set | |
| private Messager | |
| private String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | init(final ProcessingEnvironment
environment to access facilities the tool framework
provides to the processor processingEnv)Overrides javax. Implements javax. |
| private File | |
| public boolean | process(final Set<? extends TypeElement>
the annotation interfaces requested to be processed annotations, final RoundEnvironment environment for information about the current and prior round env)Implements abstract javax. Implements javax. |
| private void | processCStruct(final CStruct struct, final Element element, final String packageName, final String user_dir)
|
| DEBUG | back to summary |
|---|---|
| pack-priv static final boolean DEBUG | |
| DEFAULT | back to summary |
|---|---|
| private static final String DEFAULT | |
| eltUtils | back to summary |
|---|---|
| private Elements eltUtils | |
| filer | back to summary |
|---|---|
| private Filer filer | |
| generatedStructs | back to summary |
|---|---|
| private static final Set<String> generatedStructs | |
| messager | back to summary |
|---|---|
| private Messager messager | |
| outputPath | back to summary |
|---|---|
| private String outputPath | |
| STRUCTGENOUTPUT | back to summary |
|---|---|
| private static final String STRUCTGENOUTPUT | |
| STRUCTGENOUTPUT_OPTION | back to summary |
|---|---|
| private static final String STRUCTGENOUTPUT_OPTION | |
| CStructAnnotationProcessor | back to summary |
|---|---|
| public CStructAnnotationProcessor() | |
| generateStructBinding | back to summary |
|---|---|
| private void generateStructBinding(final Element element, final CStruct struct, final boolean isPackageOrType, final String rootOut, final String pakage, final File header, final String headerParent) throws IOException | |
| init | back to summary |
|---|---|
| public void init(final ProcessingEnvironment processingEnv) Overrides javax. Implements javax. Doc from javax. Initializes the processor with the processing environment.
| |
| locateSource | back to summary |
|---|---|
| private File locateSource(final String packageName, final String relativeName) | |
| process | back to summary |
|---|---|
| public boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment env) Implements abstract javax. Implements javax. Doc from javax. Processes a set of annotation interfaces on root elements originating
from the prior round and returns whether or not these
annotation interfaces are claimed by this processor. If The input set will be empty if the processor supports
| |
| processCStruct | back to summary |
|---|---|
| private void processCStruct(final CStruct struct, final Element element, final String packageName, final String user_dir) | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected PrintWriter | openFile(final String
the class's full filename to open w/ write access filename, final String the simple class name, i.e. w/o package name simpleClassName)Overrides com. |
| AnnotationProcessorJavaStructEmitter | back to summary |
|---|---|
| public AnnotationProcessorJavaStructEmitter() | |
| openFile | back to summary |
|---|---|
| protected PrintWriter openFile(final String filename, final String simpleClassName) throws IOException Overrides com.
| |