aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/JavaEmitter.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-06-20 20:06:35 +0200
committerSven Gothel <[email protected]>2013-06-20 20:06:35 +0200
commitf69831574d4927d03d40c330d0b047d8c89622a4 (patch)
tree7d8b7f272422c438a106a344a2afec23529652e6 /src/java/com/jogamp/gluegen/JavaEmitter.java
parent8cabcd2de8b46c42dffcaaf46ccc2dc4d092ebba (diff)
ProcAddressTable: Make all handles package private, use local PROCADDRESS_VAR_PREFIX instance, add checkAllPermissions() for reset() and initEntry(..)
- Generated ProcAddressTable's function handles are all package private - Generated ProcAddressTable's visibility can be set via 'AccessControl' config, default: public. - ProcAddressTable's reset() and initEntry(..) perform checkAllPermissions() 1st.
Diffstat (limited to 'src/java/com/jogamp/gluegen/JavaEmitter.java')
-rw-r--r--src/java/com/jogamp/gluegen/JavaEmitter.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/java/com/jogamp/gluegen/JavaEmitter.java b/src/java/com/jogamp/gluegen/JavaEmitter.java
index 18b2636..914f5a8 100644
--- a/src/java/com/jogamp/gluegen/JavaEmitter.java
+++ b/src/java/com/jogamp/gluegen/JavaEmitter.java
@@ -86,7 +86,16 @@ public class JavaEmitter implements GlueEmitter {
/**
* Access control for emitted Java methods.
*/
- public enum MethodAccess {PUBLIC, PROTECTED, PRIVATE, PACKAGE_PRIVATE, PUBLIC_ABSTRACT}
+ public enum MethodAccess {
+ PUBLIC("public"), PROTECTED("protected"), PRIVATE("private"), PACKAGE_PRIVATE("/* pp */"), PUBLIC_ABSTRACT("abstract");
+
+ public final String getJavaName() { return javaName; }
+
+ MethodAccess(String javaName) {
+ this.javaName = javaName;
+ }
+ private final String javaName;
+ }
private PrintWriter javaWriter; // Emits either interface or, in AllStatic mode, everything
private PrintWriter javaImplWriter; // Only used in non-AllStatic modes for impl class