-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
JavaClassWrapper
so it actually works
- Loading branch information
Showing
9 changed files
with
396 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<class name="JavaClass" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> | ||
<brief_description> | ||
Represents an object from the Java Native Interface. | ||
Represents a class from the Java Native Interface. | ||
</brief_description> | ||
<description> | ||
Represents an object from the Java Native Interface. It is returned from [method JavaClassWrapper.wrap]. | ||
Represents a class from the Java Native Interface. It is returned from [method JavaClassWrapper.wrap]. | ||
[b]Note:[/b] This class only works on Android. For any other build, this class does nothing. | ||
[b]Note:[/b] This class is not to be confused with [JavaScriptObject]. | ||
</description> | ||
<tutorials> | ||
</tutorials> | ||
<methods> | ||
<method name="get_java_class_name" qualifiers="const"> | ||
<return type="String" /> | ||
<description> | ||
Returns the Java class name. | ||
</description> | ||
</method> | ||
<method name="get_java_method_list" qualifiers="const"> | ||
<return type="Dictionary[]" /> | ||
<description> | ||
Returns the object's Java methods and their signatures as an [Array] of dictionaries, in the same format as [method Object.get_method_list]. | ||
</description> | ||
</method> | ||
<method name="get_java_parent_class" qualifiers="const"> | ||
<return type="JavaClass" /> | ||
<description> | ||
Returns a [JavaClass] representing the Java parent class of this class. | ||
</description> | ||
</method> | ||
</methods> | ||
</class> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<class name="JavaObject" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> | ||
<brief_description> | ||
Represents an object from the Java Native Interface. It can be return from Java methods called on [JavaClass]. See [JavaClassWrapper] for an example. | ||
[b]Note:[/b] This class only works on Android. For any other build, this class does nothing. | ||
[b]Note:[/b] This class is not to be confused with [JavaScriptObject]. | ||
</brief_description> | ||
<description> | ||
</description> | ||
<tutorials> | ||
</tutorials> | ||
<methods> | ||
<method name="get_java_class" qualifiers="const"> | ||
<return type="JavaClass" /> | ||
<description> | ||
Returns the [JavaClass] that this object is an instance of. | ||
</description> | ||
</method> | ||
</methods> | ||
</class> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.