<?xml version="1.0" encoding="UTF-8"?>

<!--
*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2010 - 2011 - Calixte DENIZET <calixte@contrib.scilab.org>
*
 * Copyright (C) 2012 - 2016 - Scilab Enterprises
 *
 * This file is hereby licensed under the terms of the GNU GPL v2.0,
 * pursuant to article 5.3.4 of the CeCILL v.2.1.
 * This file was originally licensed under the terms of the CeCILL v2.1,
 * and continues to be available under such terms.
 * For more information, see the COPYING file which you should have received
 * along with this program.
*
*
-->

<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="jnewInstance">

    <refnamediv>

        <refname>jnewInstance</refname>

        <refpurpose>Javaクラスの新規インスタンスを作成</refpurpose>

    </refnamediv>

    <refsynopsisdiv>

        <title>呼び出し手順</title>

        <synopsis>

            obj = jnewInstance(class [, arg_1 [, arg_2... ]])

        </synopsis>

    </refsynopsisdiv>

    <refsection>

        <title>パラメータ</title>

        <variablelist>

            <varlistentry>

                <term>class</term>

                <listitem>

                    <para>

                        _JClass型のmlistまたはクラス名を含む文字列

                    </para>

                </listitem>

            </varlistentry>

            <varlistentry>

                <term>arg_i</term>

                <listitem>

                    <para>Scilabデータまたは_JObj型のmlist</para>

                </listitem>

            </varlistentry>

            <varlistentry>

                <term>obj</term>

                <listitem>

                    <para>_JObj型のmlist</para>

                </listitem>

            </varlistentry>

        </variablelist>

    </refsection>

    <refsection>

        <title>説明</title>

        <para>

            <link linkend="jimport">jimport</link>で取得したJavaクラス

            の新規インスタンスを作成します.

        </para>

    </refsection>

    <refsection>

        <title>例</title>

        <programlisting role="example"><![CDATA[
               jimport java.io.File;
               jimport java.lang.System;

               a = System.getProperty("java.io.tmpdir");
               s = jnewInstance(File, a);
               s.exists() // true

               str = jnewInstance("java.lang.String", "Hello");
               b = str.substring(1, 4)

               jremove Date System s str b a;
      ]]></programlisting>

    </refsection>

    <refsection role="see also">

        <title>参照</title>

        <simplelist type="inline">

            <member>

                <link linkend="new">new</link>

            </member>

            <member>

                <link linkend="jimport">jimport</link>

            </member>

        </simplelist>

    </refsection>

    <refsection>

        <title>履歴</title>

        <revhistory>

            <revision>

                <revnumber>5.5.0</revnumber>

                <revremark>

                    関数が導入されました. 'JIMS'モジュールに基づきます.

                    JIMSモジュールとの動作上の主な違いは,

                    <link linkend="jautoUnwrap">jautoUnwrap</link>がデフォルトで

                    有効になっていることです.

                </revremark>

            </revision>

        </revhistory>

    </refsection>

</refentry>



