JavaClass
Represents a class from the Java Native Interface.
Description
Section titled “Description”Represents a class from the Java Native Interface. It is returned from JavaClassWrapper.wrap().
Note: This class only works on Android. On any other platform, this class does nothing.
Note: This class is not to be confused with JavaScriptObject.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| String | get_java_class_name() |
[]Dictionary | get_java_method_list() |
| JavaClass | get_java_parent_class() |
| bool | has_java_method(method) |
Method descriptions
Section titled “Method descriptions”get_java_class_name
Section titled “get_java_class_name”String get_java_class_name() const
Returns the Java class name.
get_java_method_list
Section titled “get_java_method_list”[]Dictionary get_java_method_list() const
Returns the object’s Java methods and their signatures as an Array of dictionaries, in the same format as Object.get_method_list().
get_java_parent_class
Section titled “get_java_parent_class”JavaClass get_java_parent_class() const
Returns a JavaClass representing the Java parent class of this class.
has_java_method
Section titled “has_java_method”bool has_java_method(method: StringName) const
Returns true if the given method name exists in the object’s Java methods.