Implement has_java_method(...) for JavaClassWrapper and JNISingleton

This commit is contained in:
Fredia Huya-Kouadio
2025-05-29 12:40:18 -07:00
parent d7382aa058
commit 0622cee189
8 changed files with 134 additions and 30 deletions

View File

@@ -9,4 +9,13 @@
<tutorials>
<link title="Creating Android plugins">$DOCS_URL/tutorials/platform/android/android_plugin.html#doc-android-plugin</link>
</tutorials>
<methods>
<method name="has_java_method" qualifiers="const">
<return type="bool" />
<param index="0" name="method" type="StringName" />
<description>
Returns [code]true[/code] if the given [param method] name exists in the JNISingleton's Java methods.
</description>
</method>
</methods>
</class>

View File

@@ -29,5 +29,12 @@
Returns a [JavaClass] representing the Java parent class of this class.
</description>
</method>
<method name="has_java_method" qualifiers="const">
<return type="bool" />
<param index="0" name="method" type="StringName" />
<description>
Returns [code]true[/code] if the given [param method] name exists in the object's Java methods.
</description>
</method>
</methods>
</class>

View File

@@ -17,5 +17,12 @@
Returns the [JavaClass] that this object is an instance of.
</description>
</method>
<method name="has_java_method" qualifiers="const">
<return type="bool" />
<param index="0" name="method" type="StringName" />
<description>
Returns [code]true[/code] if the given [param method] name exists in the object's Java methods.
</description>
</method>
</methods>
</class>