4d8e736d082def718a89790776415addb2dc90f4
[scilab.git] / scilab / modules / external_objects_java / help / ja_JP / jcompile.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4 *
5 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
6 * Copyright (C) 2010 - 2011 - Calixte DENIZET <calixte@contrib.scilab.org>
7 *
8  * Copyright (C) 2012 - 2016 - Scilab Enterprises
9  *
10  * This file is hereby licensed under the terms of the GNU GPL v2.0,
11  * pursuant to article 5.3.4 of the CeCILL v.2.1.
12  * This file was originally licensed under the terms of the CeCILL v2.1,
13  * and continues to be available under such terms.
14  * For more information, see the COPYING file which you should have received
15  * along with this program.
16 *
17 *
18 -->
19
20 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="jcompile">
21
22     <refnamediv>
23
24         <refname>jcompile</refname>
25
26         <refpurpose>Javaコードまたはファイルをコンパイルする</refpurpose>
27
28     </refnamediv>
29
30     <refsynopsisdiv>
31
32         <title>呼び出し手順</title>
33
34         <synopsis>
35
36             class = jcompile(className, code);
37
38             class = jcompile(javaFiles);
39
40         </synopsis>
41
42     </refsynopsisdiv>
43
44     <refsection>
45
46         <title>パラメータ</title>
47
48         <variablelist>
49
50             <varlistentry>
51
52                 <term>className</term>
53
54                 <listitem>
55
56                     <para>クラス名を指定する文字列</para>
57
58                 </listitem>
59
60             </varlistentry>
61
62             <varlistentry>
63
64                 <term>code</term>
65
66                 <listitem>
67
68                     <para>
69
70                         Javaコードを有する文字列の行または列
71
72                     </para>
73
74                 </listitem>
75
76             </varlistentry>
77
78             <varlistentry>
79
80                 <term>javaFiles</term>
81
82                 <listitem>
83
84                     <para>Javaファイルのパス.</para>
85
86                 </listitem>
87
88             </varlistentry>
89
90             <varlistentry>
91
92                 <term>class</term>
93
94                 <listitem>
95
96                     <para>_JClass型のmlist</para>
97
98                 </listitem>
99
100             </varlistentry>
101
102         </variablelist>
103
104     </refsection>
105
106     <refsection>
107
108         <title>説明</title>
109
110         <para>
111
112             Javaソースコードをコンパイルし, 対応するクラスを読み込みます.
113
114             JDKで配布されるパッケージ tools.jar が classpath に存在しない場合,
115
116             Eclipse Compiler for Java (ECJ) が使用されます.
117
118         </para>
119
120         <para>
121
122             引数がファイルの場合, jcompile はJavaコードをコンパイルします.
123
124         </para>
125
126     </refsection>
127
128     <refsection>
129
130         <title>例</title>
131
132         <programlisting role="example"><![CDATA[
133                hw = jcompile("HelloWorld", ["public class HelloWorld {"
134                                             "public static String getHello() {"
135                                             "return ""Hello World !!"";"
136                                             "}"
137                                             "}"]);
138
139                hello = hw.getHello()
140
141                jremove hello hw
142       ]]></programlisting>
143
144         <programlisting role="example"><![CDATA[
145 fd = mopen(TMPDIR+'/HelloWorld.java','wt');
146 mputl(["public class HelloWorld {"
147                    "public static String getHello() {"
148                    "return ""Hello World !!"";"
149                    "}"
150                    "}"],fd);
151 mclose(fd);
152
153 jcompile(TMPDIR+"/HelloWorld.java")
154       ]]></programlisting>
155
156         <programlisting role="example"><![CDATA[
157 directory=SCI+"/modules/external_objects_java/examples/com/foo/";
158 // Compile of all them
159 jcompile(ls(directory + "/*.java"))
160       ]]></programlisting>
161
162     </refsection>
163
164     <refsection role="see also">
165
166         <title>参照</title>
167
168         <simplelist type="inline">
169
170             <member>
171
172                 <link linkend="jimport">jimport</link>
173
174             </member>
175
176         </simplelist>
177
178     </refsection>
179
180     <refsection>
181
182         <title>履歴</title>
183
184         <revhistory>
185
186             <revision>
187
188                 <revnumber>5.5.0</revnumber>
189
190                 <revremark>
191
192                     関数が導入されました. 'JIMS'モジュールに基づきます.
193
194                     JIMSモジュールとの動作上の主な違いは,
195
196                     <link linkend="jautoUnwrap">jautoUnwrap</link>がデフォルトで
197
198                     有効になっていることです.
199
200                 </revremark>
201
202             </revision>
203
204         </revhistory>
205
206     </refsection>
207
208 </refentry>
209
210
211