Package com.jogamp.gluegen.procaddress
Class ProcAddressCMethodBindingEmitter
- java.lang.Object
-
- com.jogamp.gluegen.FunctionEmitter
-
- com.jogamp.gluegen.CMethodBindingEmitter
-
- com.jogamp.gluegen.procaddress.ProcAddressCMethodBindingEmitter
-
public class ProcAddressCMethodBindingEmitter extends CMethodBindingEmitter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jogamp.gluegen.CMethodBindingEmitter
CMethodBindingEmitter.DefaultCommentEmitter
-
Nested classes/interfaces inherited from class com.jogamp.gluegen.FunctionEmitter
FunctionEmitter.EmissionModifier
-
-
Field Summary
-
Fields inherited from class com.jogamp.gluegen.CMethodBindingEmitter
arrayIdx, arrayRes, arrayResLength, binding, defaultCommentEmitter, forImplementingMethodCall, forIndirectBufferAndArrayImplementation, LOG, machDesc, STRING_CHARS_PREFIX
-
Fields inherited from class com.jogamp.gluegen.FunctionEmitter
cfg, STATIC
-
-
Constructor Summary
Constructors Constructor Description ProcAddressCMethodBindingEmitter(CMethodBindingEmitter methodToWrap, boolean callThroughProcAddress, boolean hasProcAddrTypedef, String localTypedefCallingConvention, ProcAddressEmitter emitter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
emitArguments(PrintWriter writer)
Returns the number of arguments emitted.protected void
emitBodyCallCFunction(PrintWriter writer)
protected void
emitBodyVariableDeclarations(PrintWriter writer)
protected void
emitBodyVariablePreCallSetup(PrintWriter writer)
Code to init the variables that were declared in emitBodyVariableDeclarations(), PRIOR TO calling the actual C function.protected String
jniMangle(MethodBinding binding)
-
Methods inherited from class com.jogamp.gluegen.CMethodBindingEmitter
argumentNameArray, byteOffsetArgName, byteOffsetArrayArgName, cThisArgumentName, emitBody, emitBodyPassCArguments, emitBodyReturnResult, emitBodyUserVariableAssignments, emitBodyUserVariableDeclarations, emitBodyVariablePostCallCleanup, emitName, emitReturnType, forIndirectBufferAndArrayImplementation, getBinding, getCSymbol, getImplName, getImplSuffix, getInterfaceName, getIsJavaMethodStatic, getIsOverloadedBinding, getJavaClassName, getJavaPackageName, getMachineDataInfo, getNativeName, getReturnValueCapacityExpression, getReturnValueLengthExpression, getTemporaryCVariableAssignments, getTemporaryCVariableDeclarations, isNIOArgName, isNIOArgName, isUTF8Type, javaArgTypeNeedsDataCopy, jniMangle, pointerConversionArgumentName, setIsCStructFunctionPointer, setReturnValueCapacityExpression, setReturnValueLengthExpression, setTemporaryCVariableAssignments, setTemporaryCVariableDeclarations
-
Methods inherited from class com.jogamp.gluegen.FunctionEmitter
addModifier, addModifiers, clearModifiers, emit, emit, emitDocComment, emitModifiers, emitSignature, getBaseIndentString, getCommentEmitter, getCommentEndString, getCommentStartString, getDefaultOutput, getModifiers, hasModifier, isInterface, removeModifier, setCommentEmitter, toString
-
-
-
-
Constructor Detail
-
ProcAddressCMethodBindingEmitter
public ProcAddressCMethodBindingEmitter(CMethodBindingEmitter methodToWrap, boolean callThroughProcAddress, boolean hasProcAddrTypedef, String localTypedefCallingConvention, ProcAddressEmitter emitter)
-
-
Method Detail
-
emitArguments
protected int emitArguments(PrintWriter writer)
Description copied from class:FunctionEmitter
Returns the number of arguments emitted.- Overrides:
emitArguments
in classCMethodBindingEmitter
-
emitBodyVariableDeclarations
protected void emitBodyVariableDeclarations(PrintWriter writer)
- Overrides:
emitBodyVariableDeclarations
in classCMethodBindingEmitter
-
emitBodyVariablePreCallSetup
protected void emitBodyVariablePreCallSetup(PrintWriter writer)
Description copied from class:CMethodBindingEmitter
Code to init the variables that were declared in emitBodyVariableDeclarations(), PRIOR TO calling the actual C function.- Overrides:
emitBodyVariablePreCallSetup
in classCMethodBindingEmitter
-
emitBodyCallCFunction
protected void emitBodyCallCFunction(PrintWriter writer)
- Overrides:
emitBodyCallCFunction
in classCMethodBindingEmitter
-
jniMangle
protected String jniMangle(MethodBinding binding)
- Overrides:
jniMangle
in classCMethodBindingEmitter
-
-