summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/FunctionEmitter.java
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-10-17 21:06:56 -0700
committerHarvey Harrison <[email protected]>2013-10-17 21:06:56 -0700
commit791a2749886f02ec7b8db25bf8862e8269b96da5 (patch)
treec9be31d0bbbe8033b4a6a0cfad91a22b6575ced1 /src/java/com/jogamp/gluegen/FunctionEmitter.java
parent5b77e15500b7b19d35976603dd71e8b997b2d8ea (diff)
gluegen: remove trailing whitespace
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/java/com/jogamp/gluegen/FunctionEmitter.java')
-rw-r--r--src/java/com/jogamp/gluegen/FunctionEmitter.java38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/java/com/jogamp/gluegen/FunctionEmitter.java b/src/java/com/jogamp/gluegen/FunctionEmitter.java
index f9fbd21..8bb2ca5 100644
--- a/src/java/com/jogamp/gluegen/FunctionEmitter.java
+++ b/src/java/com/jogamp/gluegen/FunctionEmitter.java
@@ -1,21 +1,21 @@
/*
* Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
- *
+ *
* - Redistribution of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
- *
+ *
* - Redistribution in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- *
+ *
* Neither the name of Sun Microsystems, Inc. or the names of
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
- *
+ *
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
* INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
@@ -28,11 +28,11 @@
* DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
* ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
* SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
- *
+ *
* You acknowledge that this software is not designed or intended for use
* in the design, construction, operation or maintenance of any nuclear
* facility.
- *
+ *
* Sun gratefully acknowledges that this software was originally authored
* and developed by Kenneth Bradley Russell and Christopher John Kline.
*/
@@ -59,7 +59,7 @@ public abstract class FunctionEmitter {
this.defaultOutput = defaultOutput;
this.isInterfaceVal = isInterface;
}
-
+
/**
* Makes this FunctionEmitter a copy of the passed one.
*/
@@ -133,7 +133,7 @@ public abstract class FunctionEmitter {
* null, in which case no comment emitter has been set.
*/
public CommentEmitter getCommentEmitter() { return commentEmitter; }
-
+
protected void emitDocComment(PrintWriter writer) {
if (commentEmitter != null) {
@@ -144,13 +144,13 @@ public abstract class FunctionEmitter {
commentEmitter.emit(this, writer);
writer.print(getBaseIndentString()); //indent
-
+
writer.println(getCommentEndString());
}
}
-
+
protected void emitSignature(PrintWriter writer) {
-
+
writer.print(getBaseIndentString()); // indent method
int numEmitted = emitModifiers(writer);
@@ -182,21 +182,21 @@ public abstract class FunctionEmitter {
}
protected String getBaseIndentString() { return ""; }
-
+
protected String getCommentStartString() { return "/* "; }
protected String getCommentEndString() { return " */"; }
-
+
protected abstract void emitReturnType(PrintWriter writer);
- protected abstract void emitName(PrintWriter writer);
+ protected abstract void emitName(PrintWriter writer);
/** Returns the number of arguments emitted. */
- protected abstract int emitArguments(PrintWriter writer);
+ protected abstract int emitArguments(PrintWriter writer);
protected abstract void emitBody(PrintWriter writer);
-
+
public static class EmissionModifier {
@Override
public final String toString() { return emittedForm; }
-
+
private String emittedForm;
@Override
@@ -213,7 +213,7 @@ public abstract class FunctionEmitter {
return emittedForm.equals(((EmissionModifier) arg).emittedForm);
}
- protected EmissionModifier(String emittedForm) { this.emittedForm = emittedForm; }
+ protected EmissionModifier(String emittedForm) { this.emittedForm = emittedForm; }
}
}