added japanese translation of java external object.
[scilab.git] / scilab / modules / external_objects_java / help / ja_JP / jinvoke_db.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="jinvoke_db">
18     
19     <refnamediv>
20         
21         <refname>jinvoke_db</refname>
22         
23         <refpurpose>
24             
25             JavaダイレクトバッファによりJavaオブジェクトのメソッドを
26             
27             呼び出す
28             
29         </refpurpose>
30         
31     </refnamediv>
32     
33     <refsynopsisdiv>
34         
35         <title>呼び出し手順</title>
36         
37         <synopsis>
38             
39             ret = jinvoke_db(object, methodName [, varName_1 [, varName_2...]])
40             
41         </synopsis>
42         
43     </refsynopsisdiv>
44     
45     <refsection>
46         
47         <title>パラメータ</title>
48         
49         <variablelist>
50             
51             <varlistentry>
52                 
53                 <term>object</term>
54                 
55                 <listitem>
56                     
57                     <para>
58                         
59                         _JObjまたは_JClass型のmlistまたはScilab変数
60                         
61                     </para>
62                     
63                 </listitem>
64                 
65             </varlistentry>
66             
67             <varlistentry>
68                 
69                 <term>methodName</term>
70                 
71                 <listitem>
72                     
73                     <para>メソッド名を指定する文字列</para>
74                     
75                 </listitem>
76                 
77             </varlistentry>
78             
79             <varlistentry>
80                 
81                 <term>varName_i</term>
82                 
83                 <listitem>
84                     
85                     <para>
86                         
87                         引数用のScilab変数の名前を指定する文字列
88                         
89                     </para>
90                     
91                 </listitem>
92                 
93             </varlistentry>
94             
95         </variablelist>
96         
97     </refsection>
98     
99     <refsection>
100         
101         <title>説明</title>
102         
103         <para>
104             
105             指定したオブジェクトのmethodNameという名前の
106             
107             (静的またはそれ以外の)Javaメソッドをコールします.
108             
109             varNameiという名前のScilab変数のポインタを取得し,
110             
111             ダイレクトバッファが作成されます.
112             
113             <emphasis role="bold">注意: 
114                 
115                 ダイレクトバッファ上にリファレンスを保持する
116                 
117                 べきではありません.
118                 
119                 Scilabメモリに直接アクセスするため,何らかの理由で
120                 
121                 Scilab変数を移動したり破棄したりする場合,
122                 
123                 意図しない読み書きが発生するリスクがあります!
124                 
125                 問題を回避するには,各バッファのリミットに
126                 
127                 0を設定してください.
128                 
129             </emphasis>
130             
131         </para>
132         
133     </refsection>
134     
135     <refsection>
136         
137         <title>例</title>
138         
139         <programlisting role="example"><![CDATA[
140                c = jcompile("TestDirectBuffer",["import java.nio.DoubleBuffer;";
141                                                 "public class TestDirectBuffer {";
142                                                 "public static void increment(DoubleBuffer x) {";
143                                                 "for (int i = 0; i < x.capacity(); i++) x.put(i, x.get(i) + 1);";
144                                                 "}";
145                                                 "}"])
146                a = 1:10000;
147                b = a + 1; // only used to compare with the following...
148                jinvoke_db(c, "increment", "a");
149                and(a==b)
150
151                jremove c;
152       ]]></programlisting>
153         
154     </refsection>
155     
156     <refsection role="see also">
157         
158         <title>参照</title>
159         
160         <simplelist type="inline">
161             
162             <member>
163                 
164                 <link linkend="jinvoke">jinvoke</link>
165                 
166             </member>
167             
168         </simplelist>
169         
170     </refsection>
171     
172     <refsection>
173         
174         <title>履歴</title>
175         
176         <revhistory>
177             
178             <revision>
179                 
180                 <revnumber>5.5.0</revnumber>
181                 
182                 <revremark>
183                     
184                     関数が導入されました. 'JIMS'モジュールに基づきます.
185                     
186                     JIMSモジュールとの動作上の主な違いは,
187                     
188                     <link linkend="jautoUnwrap">jautoUnwrap</link>がデフォルトで
189                     
190                     有効になっていることです.
191                     
192                 </revremark>
193                 
194             </revision>
195             
196         </revhistory>
197         
198     </refsection>
199     
200 </refentry>
201
202
203