Top Description Fields Constructors Methods
com.jogamp.gluegen

public Class GlueGen

extends Object
implements GlueEmitterControls
Class Inheritance
All Implemented Interfaces
com.jogamp.gluegen.GlueEmitterControls
Imports
com.jogamp.common.GlueGenVersion, java.io.*, java.util.*, java.util.logging.Level, antlr.*, com.jogamp.gluegen.cgram.*, com.jogamp.gluegen.cgram.types.*, com.jogamp.gluegen.jcpp.JCPP

Glue code generator for C functions and data structures.

Field Summary

Modifier and TypeField and Description
public static final String
__GLUEGEN__

GlueGen's build in macro name , when compiling w/ GlueGen.

private List<ConstantDefinition>
private List<FunctionSymbol>
private static boolean
private final List<String>
private static Level
private GenericCPP

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
public String
findHeaderFile(final String headerFileName)

Implements com.jogamp.gluegen.GlueEmitterControls.findHeaderFile.

Finds the full path name of the specified header file based on the include directories specified on the command line.
public void
forceStructEmission(final String typedefName)

Implements com.jogamp.gluegen.GlueEmitterControls.forceStructEmission.

Requests emission of an accessor for a struct that will not be referenced by any functions or other structs.
public static void
main(final String... args)

public void
run(final Reader reader, final String filename, final Class<?> emitterClass, final List<String> includePaths, final List<String> cfgFiles, final String outputRootDir, final boolean copyCPPOutput2Stderr)

public void
runSymbolFilter(final SymbolFilter filter)

Implements com.jogamp.gluegen.GlueEmitterControls.runSymbolFilter.

Runs the given filter on the #defines, enum definitions and function symbols that this controller has parsed.
public static void
setDebug(final boolean v)

public static void
setLogLevel(final Level l)

private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

__GLUEGEN__back to summary
public static final String __GLUEGEN__

GlueGen's build in macro name , when compiling w/ GlueGen.

allConstantsback to summary
private List<ConstantDefinition> allConstants
allFunctionsback to summary
private List<FunctionSymbol> allFunctions
debugback to summary
private static boolean debug
forcedStructNamesback to summary
private final List<String> forcedStructNames
logLevelback to summary
private static Level logLevel
preprocessorback to summary
private GenericCPP preprocessor

Constructor Detail

GlueGenback to summary
public GlueGen()

Method Detail

debugback to summary
public static boolean debug()
findHeaderFileback to summary
public String findHeaderFile(final String headerFileName)

Implements com.jogamp.gluegen.GlueEmitterControls.findHeaderFile.

Doc from com.jogamp.gluegen.GlueEmitterControls.findHeaderFile.

Finds the full path name of the specified header file based on the include directories specified on the command line.

Annotations
@Override
forceStructEmissionback to summary
public void forceStructEmission(final String typedefName)

Implements com.jogamp.gluegen.GlueEmitterControls.forceStructEmission.

Doc from com.jogamp.gluegen.GlueEmitterControls.forceStructEmission.

Requests emission of an accessor for a struct that will not be referenced by any functions or other structs.

Annotations
@Override
mainback to summary
public static void main(final String... args)
runback to summary
public void run(final Reader reader, final String filename, final Class<?> emitterClass, final List<String> includePaths, final List<String> cfgFiles, final String outputRootDir, final boolean copyCPPOutput2Stderr)
Annotations
@SuppressWarnings:unchecked
runSymbolFilterback to summary
public void runSymbolFilter(final SymbolFilter filter)

Implements com.jogamp.gluegen.GlueEmitterControls.runSymbolFilter.

Doc from com.jogamp.gluegen.GlueEmitterControls.runSymbolFilter.

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 as GlueEmitter#beginEmission 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.

Annotations
@Override
setDebugback to summary
public static void setDebug(final boolean v)
setLogLevelback to summary
public static void setLogLevel(final Level l)
usageback to summary
private static void usage()