-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathJavaScriptModule.xml
More file actions
44 lines (44 loc) · 1.61 KB
/
JavaScriptModule.xml
File metadata and controls
44 lines (44 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="UTF-8" ?>
<class name="JavaScriptModule" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
<brief_description>
A JavaScript module resource for managing JavaScript source code and bytecode.
</brief_description>
<description>
The JavaScriptModule class provides methods to manage JavaScript source code and bytecode. It allows you to get and set both the source code and bytecode of a JavaScript module.
</description>
<tutorials>
</tutorials>
<methods>
<method name="get_bytecode" qualifiers="const">
<return type="PackedByteArray" />
<description>
Returns the bytecode of the JavaScript module as a PackedByteArray.
</description>
</method>
<method name="get_source_code" qualifiers="const">
<return type="String" />
<description>
Returns the source code of the JavaScript module as a String.
</description>
</method>
<method name="set_bytecode">
<return type="void" />
<param index="0" name="bytecode" type="PackedByteArray" />
<description>
Sets the bytecode of the JavaScript module using a PackedByteArray.
</description>
</method>
<method name="set_source_code">
<return type="void" />
<param index="0" name="source_code" type="String" />
<description>
Sets the source code of the JavaScript module using a String.
</description>
</method>
</methods>
<members>
<member name="script_path" type="String" setter="set_script_path" getter="get_script_path" default="""">
The path to the JavaScript script file.
</member>
</members>
</class>