summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-06-25 07:51:24 +0200
committerSven Gothel <[email protected]>2023-06-25 07:51:24 +0200
commitc54c5699c752fcf2cee19ef9dc21cd4acb5aa6cd (patch)
treef3449b136cf7a1d03537d04eabcf57bbb8747646 /src/java/com/jogamp
parentd55eab966968dfff6eac0db0445a0dbfbfb96240 (diff)
GlueGen Add JavaType.forObjectClass()
Diffstat (limited to 'src/java/com/jogamp')
-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);