From b86c042c864db0d8061b999fadc87dd9f3b45824 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 7 Mar 2015 08:28:03 +0100 Subject: Bug 1134 - Handle Opaque fields in structs; Print struct field name in apidoc of getter/setter --- src/java/com/jogamp/gluegen/JavaConfiguration.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/java/com/jogamp/gluegen/JavaConfiguration.java') diff --git a/src/java/com/jogamp/gluegen/JavaConfiguration.java b/src/java/com/jogamp/gluegen/JavaConfiguration.java index 63f86e8..e1bdffd 100644 --- a/src/java/com/jogamp/gluegen/JavaConfiguration.java +++ b/src/java/com/jogamp/gluegen/JavaConfiguration.java @@ -371,6 +371,22 @@ public class JavaConfiguration { } private static final boolean DEBUG_TYPE_INFO = false; + + /** + * If the given {@code canonicalName} should be considered opaque, + * returns the TypeInfo describing the replacement type. + *

+ * Returns null if this type should not be considered opaque. + *

+ *

+ * If symbol references a struct fields, see {@link #canonicalStructFieldSymbol(String, String)}, + * it describes field's array-length or element-count referenced by a pointer. + *

+ */ + public TypeInfo canonicalNameOpaque(final String canonicalName) { + return typeInfoMap.get(canonicalName); + } + /** If this type should be considered opaque, returns the TypeInfo describing the replacement type. Returns null if this type should not be considered opaque. */ -- cgit v1.2.3