summaryrefslogtreecommitdiffstats
path: root/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-04-17 21:26:26 +0000
committerKenneth Russel <[email protected]>2006-04-17 21:26:26 +0000
commit2aa23056d44c96db88d7cab700243886f6c00304 (patch)
tree1c0a604a727b2bd19621341e329a58a90829ecbe /src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
parent97522e9c738cc01dc0081454a71019a829eb2a5f (diff)
Fixed Issue 212: Incorporate patch to add URL links to GL javadoc
Incorporated patch from user cylab on javagaming.org forums to generate @native tags in GL javadoc which are postprocessed using a taglet: http://www.javagaming.org/forums/index.php?topic=12629.0 Modified supplied patch to restrict the @native designation to only the function name, and to understand OpenGL data type-related suffixes (i.e., glVertex -> glVertex3f). git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@29 a78bb65f-1512-4460-ba86-f6dc96a7bf27
Diffstat (limited to 'src/java/com/sun/gluegen/JavaMethodBindingEmitter.java')
-rw-r--r--src/java/com/sun/gluegen/JavaMethodBindingEmitter.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java b/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
index 4a0b201..b08d0e4 100644
--- a/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
+++ b/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
@@ -73,6 +73,7 @@ public class JavaMethodBindingEmitter extends FunctionEmitter
protected boolean forDirectBufferImplementation;
protected boolean forIndirectBufferAndArrayImplementation;
protected boolean isUnimplemented;
+ protected boolean tagNativeBinding;
protected MethodBinding binding;
@@ -91,6 +92,7 @@ public class JavaMethodBindingEmitter extends FunctionEmitter
PrintWriter output,
String runtimeExceptionType,
boolean emitBody,
+ boolean tagNativeBinding,
boolean eraseBufferAndArrayTypes,
boolean directNIOOnly,
boolean forImplementingMethodCall,
@@ -102,6 +104,7 @@ public class JavaMethodBindingEmitter extends FunctionEmitter
this.binding = binding;
this.runtimeExceptionType = runtimeExceptionType;
this.emitBody = emitBody;
+ this.tagNativeBinding = tagNativeBinding;
this.eraseBufferAndArrayTypes = eraseBufferAndArrayTypes;
this.directNIOOnly = directNIOOnly;
this.forImplementingMethodCall = forImplementingMethodCall;
@@ -120,6 +123,7 @@ public class JavaMethodBindingEmitter extends FunctionEmitter
binding = arg.binding;
runtimeExceptionType = arg.runtimeExceptionType;
emitBody = arg.emitBody;
+ tagNativeBinding = arg.tagNativeBinding;
eraseBufferAndArrayTypes = arg.eraseBufferAndArrayTypes;
directNIOOnly = arg.directNIOOnly;
forImplementingMethodCall = arg.forImplementingMethodCall;
@@ -702,7 +706,7 @@ public class JavaMethodBindingEmitter extends FunctionEmitter
}
protected void emitBindingCSignature(MethodBinding binding, PrintWriter writer) {
writer.print("<code> ");
- writer.print(binding.getCSymbol());
+ writer.print(binding.getCSymbol().toString(tagNativeBinding));
writer.print(" </code> ");
}
protected void emitEnding(FunctionEmitter emitter, PrintWriter writer) {