Package com.jogamp.gluegen
Class FunctionEmitter
java.lang.Object
com.jogamp.gluegen.FunctionEmitter
- Direct Known Subclasses:
CMethodBindingEmitter,JavaMethodBindingEmitter
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JavaConfigurationstatic final FunctionEmitter.EmissionModifier -
Constructor Summary
ConstructorsConstructorDescriptionMakes this FunctionEmitter a copy of the passed one.FunctionEmitter(PrintWriter defaultOutput, boolean isInterface, JavaConfiguration configuration) Constructs the FunctionEmitter with a CommentEmitter that emits nothing. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidfinal voidemit()Emit the function to the default output (the output that was passed to the constructor)voidemit(PrintWriter output) Emit the function to the specified output (instead of the default output).protected abstract intemitArguments(PrintWriter writer) Returns the number of arguments emitted.protected abstract voidemitBody(PrintWriter writer) protected voidemitDocComment(PrintWriter writer) protected intemitModifiers(PrintWriter writer) protected abstract voidemitName(PrintWriter writer) protected abstract voidemitReturnType(PrintWriter writer) protected voidemitSignature(PrintWriter writer) protected StringGet the comment emitter for this FunctionEmitter.protected Stringprotected Stringabstract FunctionSymbolabstract Stringabstract Stringabstract StringbooleanbooleanbooleanvoidsetCommentEmitter(CommentEmitter cEmitter) Set the object that will emit the comment for this function.toString()Returns, as a String, whateveremit(java.io.PrintWriter)would output.
-
Field Details
-
STATIC
-
cfg
-
-
Constructor Details
-
FunctionEmitter
public FunctionEmitter(PrintWriter defaultOutput, boolean isInterface, JavaConfiguration configuration) Constructs the FunctionEmitter with a CommentEmitter that emits nothing. -
FunctionEmitter
Makes this FunctionEmitter a copy of the passed one.
-
-
Method Details
-
isInterface
public boolean isInterface() -
getDefaultOutput
-
addModifiers
-
addModifier
-
removeModifier
-
clearModifiers
public void clearModifiers() -
hasModifier
-
getModifiers
-
getInterfaceName
-
getImplName
-
getNativeName
-
getCSymbol
-
emit
Emit the function to the specified output (instead of the default output). -
emit
public final void emit()Emit the function to the default output (the output that was passed to the constructor) -
toString
Returns, as a String, whateveremit(java.io.PrintWriter)would output. -
setCommentEmitter
Set the object that will emit the comment for this function. If the parameter is null, no comment will be emitted. -
getCommentEmitter
Get the comment emitter for this FunctionEmitter. The return value may be null, in which case no comment emitter has been set. -
emitDocComment
-
emitSignature
-
emitModifiers
-
getBaseIndentString
-
getCommentStartString
-
getCommentEndString
-
emitReturnType
-
emitName
-
emitArguments
Returns the number of arguments emitted. -
emitBody
-