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