diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/java/com/jogamp/gluegen/JavaType.java | 8 |
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); |