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 intemitArguments(PrintWriter writer)Returns the number of arguments emitted.protected voidemitBodyCallCFunction(PrintWriter writer)protected voidemitBodyVariableDeclarations(PrintWriter writer)protected voidemitBodyVariablePreCallSetup(PrintWriter writer)Code to init the variables that were declared in emitBodyVariableDeclarations(), PRIOR TO calling the actual C function.protected StringjniMangle(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:FunctionEmitterReturns the number of arguments emitted.- Overrides:
emitArgumentsin classCMethodBindingEmitter
-
emitBodyVariableDeclarations
protected void emitBodyVariableDeclarations(PrintWriter writer)
- Overrides:
emitBodyVariableDeclarationsin classCMethodBindingEmitter
-
emitBodyVariablePreCallSetup
protected void emitBodyVariablePreCallSetup(PrintWriter writer)
Description copied from class:CMethodBindingEmitterCode to init the variables that were declared in emitBodyVariableDeclarations(), PRIOR TO calling the actual C function.- Overrides:
emitBodyVariablePreCallSetupin classCMethodBindingEmitter
-
emitBodyCallCFunction
protected void emitBodyCallCFunction(PrintWriter writer)
- Overrides:
emitBodyCallCFunctionin classCMethodBindingEmitter
-
jniMangle
protected String jniMangle(MethodBinding binding)
- Overrides:
jniManglein classCMethodBindingEmitter
-
-