aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com')
-rw-r--r--src/java/com/jogamp/gluegen/JavaType.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/java/com/jogamp/gluegen/JavaType.java b/src/java/com/jogamp/gluegen/JavaType.java
index c687031..7fb4090 100644
--- a/src/java/com/jogamp/gluegen/JavaType.java
+++ b/src/java/com/jogamp/gluegen/JavaType.java
@@ -65,6 +65,7 @@ public class JavaType {
private final C_PTR primitivePointerType;
private final boolean opaqued;
+ private static JavaType objectType;
private static JavaType nioBufferType;
private static JavaType nioByteBufferType;
private static JavaType nioShortBufferType;
@@ -170,6 +171,13 @@ public class JavaType {
return createForCStruct("JNIEnv");
}
+ public static JavaType forObjectClass() {
+ if (objectType == null) {
+ objectType = createForClass(java.lang.Object.class);
+ }
+ return objectType;
+ }
+
public static JavaType forNIOBufferClass() {
if (nioBufferType == null) {
nioBufferType = createForClass(java.nio.Buffer.class);