Package com.jogamp.gluegen
Class GlueGen
- java.lang.Object
-
- com.jogamp.gluegen.GlueGen
-
- All Implemented Interfaces:
GlueEmitterControls
public class GlueGen extends Object implements GlueEmitterControls
Glue code generator for C functions and data structures.
-
-
Field Summary
Fields Modifier and Type Field Description static String
__GLUEGEN__
GlueGen's build in macro name "__GLUEGEN__", when compiling w/ GlueGen.
-
Constructor Summary
Constructors Constructor Description GlueGen()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
debug()
String
findHeaderFile(String headerFileName)
Finds the full path name of the specified header file based on the include directories specified on the command line.void
forceStructEmission(String typedefName)
Requests emission of an accessor for a struct that will not be referenced by any functions or other structs.static void
main(String... args)
void
run(Reader reader, String filename, Class<?> emitterClass, List<String> includePaths, List<String> cfgFiles, String outputRootDir, boolean copyCPPOutput2Stderr, boolean enablePragmaOnce, boolean preserveGeneratedCPP)
void
runSymbolFilter(SymbolFilter filter)
Runs the given filter on the #defines, enum definitions and function symbols that this controller has parsed.static void
setDebug(boolean v)
static void
setLogLevel(Level l)
-
-
-
Field Detail
-
__GLUEGEN__
public static final String __GLUEGEN__
GlueGen's build in macro name "__GLUEGEN__", when compiling w/ GlueGen.- See Also:
- Constant Field Values
-
-
Method Detail
-
setDebug
public static void setDebug(boolean v)
-
setLogLevel
public static void setLogLevel(Level l)
-
debug
public static boolean debug()
-
forceStructEmission
public void forceStructEmission(String typedefName)
Description copied from interface:GlueEmitterControls
Requests emission of an accessor for a struct that will not be referenced by any functions or other structs.- Specified by:
forceStructEmission
in interfaceGlueEmitterControls
-
findHeaderFile
public String findHeaderFile(String headerFileName)
Description copied from interface:GlueEmitterControls
Finds the full path name of the specified header file based on the include directories specified on the command line.- Specified by:
findHeaderFile
in interfaceGlueEmitterControls
-
runSymbolFilter
public void runSymbolFilter(SymbolFilter filter)
Description copied from interface:GlueEmitterControls
Runs the given filter on the #defines, enum definitions and function symbols that this controller has parsed. It is valid to call this method as soon asGlueEmitter.beginEmission(com.jogamp.gluegen.GlueEmitterControls)
has been called on the GlueEmitter, and it is recommended to call it from that method call. Calling it during glue code emission may cause problems.- Specified by:
runSymbolFilter
in interfaceGlueEmitterControls
-
run
public void run(Reader reader, String filename, Class<?> emitterClass, List<String> includePaths, List<String> cfgFiles, String outputRootDir, boolean copyCPPOutput2Stderr, boolean enablePragmaOnce, boolean preserveGeneratedCPP)
-
main
public static void main(String... args)
-
-