diff options
author | Sven Gothel <[email protected]> | 2015-03-11 08:42:26 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-03-11 08:42:26 +0100 |
commit | f664f7e950ff60d73e488801cf7f37878588203d (patch) | |
tree | 1519877aea5e702b9218df8c04f47492364ee35f /src/java/com/jogamp/gluegen/FunctionEmitter.java | |
parent | c3b2a86bb9051d6f03c3f104eff2dbe6cefc1803 (diff) |
Bug 1144 - Add 'DelegateImplementation': Cleanup MethodBinding/FunctionBinding Semantics
- Clarify name semantics: name -> [interfaceName, implName, nativeName]
- JavaMethodBindingEmitter: Refine native identity via isNativeMethod + isPrivateNativeMethod
- ProcAddressEmitter: Remove hack whether we need to wrap .. use isNativeMethod + isPrivateNativeMethod
Diffstat (limited to 'src/java/com/jogamp/gluegen/FunctionEmitter.java')
-rw-r--r-- | src/java/com/jogamp/gluegen/FunctionEmitter.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/java/com/jogamp/gluegen/FunctionEmitter.java b/src/java/com/jogamp/gluegen/FunctionEmitter.java index 2009c9f..bfbb73b 100644 --- a/src/java/com/jogamp/gluegen/FunctionEmitter.java +++ b/src/java/com/jogamp/gluegen/FunctionEmitter.java @@ -49,7 +49,7 @@ public abstract class FunctionEmitter { public static final EmissionModifier STATIC = new EmissionModifier("static"); - private final boolean isInterfaceVal; + private final boolean isInterface; private final ArrayList<EmissionModifier> modifiers; private CommentEmitter commentEmitter = null; private final PrintWriter defaultOutput; @@ -61,7 +61,7 @@ public abstract class FunctionEmitter { */ public FunctionEmitter(final PrintWriter defaultOutput, final boolean isInterface, final JavaConfiguration configuration) { assert(defaultOutput != null); - this.isInterfaceVal = isInterface; + this.isInterface = isInterface; this.modifiers = new ArrayList<EmissionModifier>(); this.defaultOutput = defaultOutput; this.cfg = configuration; @@ -71,14 +71,14 @@ public abstract class FunctionEmitter { * Makes this FunctionEmitter a copy of the passed one. */ public FunctionEmitter(final FunctionEmitter arg) { - isInterfaceVal = arg.isInterfaceVal; + isInterface = arg.isInterface; modifiers = new ArrayList<EmissionModifier>(arg.modifiers); commentEmitter = arg.commentEmitter; defaultOutput = arg.defaultOutput; cfg = arg.cfg; } - public boolean isInterface() { return isInterfaceVal; } + public boolean isInterface() { return isInterface; } public PrintWriter getDefaultOutput() { return defaultOutput; } @@ -97,7 +97,9 @@ public abstract class FunctionEmitter { public Iterator<EmissionModifier> getModifiers() { return modifiers.iterator(); } - public abstract String getName(); + public abstract String getInterfaceName(); + public abstract String getImplName(); + public abstract String getNativeName(); public abstract FunctionSymbol getCSymbol(); |