net.java.games.gluegen
Class JavaMethodBindingEmitter
public class JavaMethodBindingEmitter
An emitter that emits only the interface for a Java<->C JNI binding.
addModifier , addModifiers , clearModifiers , emit , emit , emitArguments , emitBody , emitDocComment , emitModifiers , emitName , emitReturnType , emitSignature , getBaseIndentString , getCommentEmitter , getCommentEndString , getCommentStartString , getDefaultOutput , getModifiers , getName , hasModifier , removeModifier , setCommentEmitter , toString |
defaultInterfaceCommentEmitter
protected static final CommentEmitter defaultInterfaceCommentEmitter
defaultJavaCommentEmitter
protected static final CommentEmitter defaultJavaCommentEmitter
JavaMethodBindingEmitter
public JavaMethodBindingEmitter(MethodBinding binding,
PrintWriter output,
String runtimeExceptionType)
JavaMethodBindingEmitter
public JavaMethodBindingEmitter(MethodBinding binding,
PrintWriter output,
String runtimeExceptionType,
boolean forImplementingMethodCall)
getImplMethodName
protected String getImplMethodName()
getReturnTypeString
protected String getReturnTypeString(boolean skipArray)
getReturnedArrayLengthExpression
protected String getReturnedArrayLengthExpression()
getRuntimeExceptionType
public String getRuntimeExceptionType()
The type of exception (must subclass
java.lang.RuntimeException
) raised if runtime
checks fail in the generated code.
isForImplementingMethodCall
public boolean isForImplementingMethodCall()
javaThisArgumentName
protected static String javaThisArgumentName()
setReturnedArrayLengthExpression
public void setReturnedArrayLengthExpression(String expr)
If the underlying function returns an array (currently only
arrays of compound types are supported) as opposed to a pointer
to an object, this method should be called to provide a
MessageFormat string containing an expression that computes the
number of elements of the returned array. The parameters to the
MessageFormat expression are the names of the incoming Java
arguments.