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, defaultCommentEmitter, forImplementingMethodCall, forIndirectBufferAndArrayImplementation, LOG, machDesc, STRING_CHARS_PREFIX
-
Fields inherited from class com.jogamp.gluegen.FunctionEmitter
binding, cfg, STATIC, unit
-
-
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
appendArguments(StringBuilder buf)
Returns the number of arguments emitted.protected void
emitBodyCallCFunction()
protected void
emitBodyVariableDeclarations()
protected void
emitBodyVariablePreCallSetup()
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
appendJNIMangledArgs, appendName, appendReturnType, argumentNameArray, byteOffsetArgName, byteOffsetArrayArgName, cThisArgumentName, emitAdditionalCode, emitBody, emitBodyMapCToJNIType, emitBodyPassCArguments, emitBodyUserVariableAssignments, emitBodyUserVariableDeclarations, emitBodyVariablePostCallCleanup, forIndirectBufferAndArrayImplementation, getCSymbol, getImplName, getImplSuffix, getInterfaceName, getIsJavaMethodStatic, getIsOverloadedBinding, getJavaClassName, getJavaPackageName, getMachineDataInfo, getNativeName, getReturnValueCapacityExpression, getReturnValueLengthExpression, getTemporaryCVariableAssignments, getTemporaryCVariableDeclarations, isNIOArgName, isNIOArgName, isUTF8Type, javaArgTypeNeedsDataCopy, pointerConversionArgumentName, setIsCStructFunctionPointer, setReturnValueCapacityExpression, setReturnValueLengthExpression, setTemporaryCVariableAssignments, setTemporaryCVariableDeclarations
-
Methods inherited from class com.jogamp.gluegen.FunctionEmitter
addModifier, addModifiers, appendModifiers, appendSignature, clearModifiers, emit, emitArguments, emitDocComment, emitModifiers, emitName, emitReturnType, emitSignature, getBaseIndentString, getBinding, getCommentEmitter, getCommentEndString, getCommentStartString, getModifiers, getUnit, hasModifier, isInterface, removeModifier, setCommentEmitter, toString
-
-
-
-
Constructor Detail
-
ProcAddressCMethodBindingEmitter
public ProcAddressCMethodBindingEmitter(CMethodBindingEmitter methodToWrap, boolean callThroughProcAddress, boolean hasProcAddrTypedef, String localTypedefCallingConvention, ProcAddressEmitter emitter)
-
-
Method Detail
-
appendArguments
protected int appendArguments(StringBuilder buf)
Description copied from class:FunctionEmitter
Returns the number of arguments emitted.- Overrides:
appendArguments
in classCMethodBindingEmitter
-
emitBodyVariableDeclarations
protected void emitBodyVariableDeclarations()
- Overrides:
emitBodyVariableDeclarations
in classCMethodBindingEmitter
-
emitBodyVariablePreCallSetup
protected void emitBodyVariablePreCallSetup()
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()
- Overrides:
emitBodyCallCFunction
in classCMethodBindingEmitter
-
jniMangle
protected String jniMangle(MethodBinding binding)
- Overrides:
jniMangle
in classCMethodBindingEmitter
-
-