Top Inners Constructors Methods
com.jogamp.gluegen

public Class CodeGenUtils

extends Object
Class Inheritance
Imports
java.io.*, java.util.*

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
CodeGenUtils.EmissionCallback

A class that emits source code of some time when activated.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
emitAutogeneratedWarning(final PrintWriter w, final Object
the object that is emitting the autogenerated code. If null, the generator will not be mentioned in the warning message.
generator
)

public static void
emitJavaHeaders(final PrintWriter w, final String packageName, final String className, final boolean isClassNotInterface, final List<String> imports, final String[] accessModifiers, final String[] interfaces, final String classExtended, final CodeGenUtils.EmissionCallback classDocComment)

Emit the opening headers for one java class/interface file.

public static String
packageAsPath(final String packageName)

Given a java package name (e.g., "java.lang"), return the package as a directory path (i.e., "java/lang").

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CodeGenUtilsback to summary
public CodeGenUtils()

Method Detail

emitAutogeneratedWarningback to summary
public static void emitAutogeneratedWarning(final PrintWriter w, final Object generator)
Parameters
generator:Object

the object that is emitting the autogenerated code. If null, the generator will not be mentioned in the warning message.

emitJavaHeadersback to summary
public static void emitJavaHeaders(final PrintWriter w, final String packageName, final String className, final boolean isClassNotInterface, final List<String> imports, final String[] accessModifiers, final String[] interfaces, final String classExtended, final CodeGenUtils.EmissionCallback classDocComment) throws IOException

Emit the opening headers for one java class/interface file.

packageAsPathback to summary
public static String packageAsPath(final String packageName)

Given a java package name (e.g., "java.lang"), return the package as a directory path (i.e., "java/lang").

com.jogamp.gluegen back to summary

public Interface CodeGenUtils.EmissionCallback


A class that emits source code of some time when activated.

Method Summary

Modifier and TypeMethod and Description
public void
emit(PrintWriter output)

Emit appropriate source code through the given writer.

Method Detail

emitback to summary
public void emit(PrintWriter output)

Emit appropriate source code through the given writer.