diff options
author | Sven Gothel <[email protected]> | 2023-06-25 07:51:24 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-06-25 07:51:24 +0200 |
commit | c54c5699c752fcf2cee19ef9dc21cd4acb5aa6cd (patch) | |
tree | f3449b136cf7a1d03537d04eabcf57bbb8747646 /src/java/com | |
parent | d55eab966968dfff6eac0db0445a0dbfbfb96240 (diff) |
GlueGen Add JavaType.forObjectClass()
Diffstat (limited to 'src/java/com')
-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); |