summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-10-17 21:34:47 -0700
committerHarvey Harrison <[email protected]>2013-10-17 21:34:47 -0700
commit7607867f0bba56792cad320695d6209b49acce9d (patch)
tree36f348562c272f5b994c12519c27d5b06b233566 /src/java/com/jogamp/gluegen/CMethodBindingEmitter.java
parent791a2749886f02ec7b8db25bf8862e8269b96da5 (diff)
gluegen: add all missing @Override annotations
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/java/com/jogamp/gluegen/CMethodBindingEmitter.java')
-rw-r--r--src/java/com/jogamp/gluegen/CMethodBindingEmitter.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java b/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java
index 7ae3192..d856767 100644
--- a/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java
+++ b/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java
@@ -147,6 +147,7 @@ public class CMethodBindingEmitter extends FunctionEmitter {
public final MethodBinding getBinding() { return binding; }
+ @Override
public String getName() {
return binding.getName();
}
@@ -291,12 +292,14 @@ public class CMethodBindingEmitter extends FunctionEmitter {
public final MachineDescription getMachineDescription() { return machDesc; }
+ @Override
protected void emitReturnType(PrintWriter writer) {
writer.print("JNIEXPORT ");
writer.print(binding.getJavaReturnType().jniTypeName());
writer.print(" JNICALL");
}
+ @Override
protected void emitName(PrintWriter writer) {
writer.println(); // start name on new line
writer.print("Java_");
@@ -326,6 +329,7 @@ public class CMethodBindingEmitter extends FunctionEmitter {
return "";
}
+ @Override
protected int emitArguments(PrintWriter writer) {
writer.print("JNIEnv *env, ");
int numEmitted = 1; // initially just the JNIEnv
@@ -374,6 +378,7 @@ public class CMethodBindingEmitter extends FunctionEmitter {
}
+ @Override
protected void emitBody(PrintWriter writer) {
writer.println(" {");
// writer.println("printf(\" - - - - "+ getName() + getImplSuffix() +" - - - -\\n\");");
@@ -1478,6 +1483,7 @@ public class CMethodBindingEmitter extends FunctionEmitter {
* emitter java method.
*/
protected static class DefaultCommentEmitter implements CommentEmitter {
+ @Override
public void emit(FunctionEmitter emitter, PrintWriter writer) {
emitBeginning((CMethodBindingEmitter)emitter, writer);
emitEnding((CMethodBindingEmitter)emitter, writer);