mirror of
https://github.com/php/doc-ja.git
synced 2026-03-23 22:52:11 +01:00
* PHP 8.4: Document reflection changes を翻訳 https://github.com/php/doc-en/pull/4037 * [PHP 8.4] Add class constant types for Reflection を翻訳 https://github.com/php/doc-en/pull/4244/files * インデント微調整 --------- Co-authored-by: 武田 憲太郎 <takeda@youmind.jp>
251 lines
7.6 KiB
XML
251 lines
7.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 51fc0eaf8ecc894bb567fb7de2de789bec74e257 Maintainer: takagi Status: ready -->
|
|
<reference xml:id="class.reflectionclass" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
|
|
|
|
<title>ReflectionClass クラス</title>
|
|
<titleabbrev>ReflectionClass</titleabbrev>
|
|
|
|
<partintro>
|
|
|
|
<!-- {{{ ReflectionClass intro -->
|
|
<section xml:id="reflectionclass.intro">
|
|
&reftitle.intro;
|
|
<para>
|
|
<classname>ReflectionClass</classname> クラスは
|
|
クラスについての情報を報告します。
|
|
</para>
|
|
</section>
|
|
<!-- }}} -->
|
|
|
|
<section xml:id="reflectionclass.synopsis">
|
|
&reftitle.classsynopsis;
|
|
|
|
<!-- {{{ Synopsis -->
|
|
<classsynopsis class="class">
|
|
<ooclass>
|
|
<classname>ReflectionClass</classname>
|
|
</ooclass>
|
|
|
|
<oointerface>
|
|
<modifier>implements</modifier>
|
|
<interfacename>Reflector</interfacename>
|
|
</oointerface>
|
|
|
|
<classsynopsisinfo role="comment">&Constants;</classsynopsisinfo>
|
|
<fieldsynopsis>
|
|
<modifier>public</modifier>
|
|
<modifier>const</modifier>
|
|
<type>int</type>
|
|
<varname linkend="reflectionclass.constants.is-implicit-abstract">ReflectionClass::IS_IMPLICIT_ABSTRACT</varname>
|
|
</fieldsynopsis>
|
|
<fieldsynopsis>
|
|
<modifier>public</modifier>
|
|
<modifier>const</modifier>
|
|
<type>int</type>
|
|
<varname linkend="reflectionclass.constants.is-explicit-abstract">ReflectionClass::IS_EXPLICIT_ABSTRACT</varname>
|
|
</fieldsynopsis>
|
|
<fieldsynopsis>
|
|
<modifier>public</modifier>
|
|
<modifier>const</modifier>
|
|
<type>int</type>
|
|
<varname linkend="reflectionclass.constants.is-final">ReflectionClass::IS_FINAL</varname>
|
|
</fieldsynopsis>
|
|
<fieldsynopsis>
|
|
<modifier>public</modifier>
|
|
<modifier>const</modifier>
|
|
<type>int</type>
|
|
<varname linkend="reflectionclass.constants.is-readonly">ReflectionClass::IS_READONLY</varname>
|
|
</fieldsynopsis>
|
|
<fieldsynopsis>
|
|
<modifier>public</modifier>
|
|
<modifier>const</modifier>
|
|
<type>int</type>
|
|
<varname linkend="reflectionclass.constants.skip-initialization-on-serialize">ReflectionClass::SKIP_INITIALIZATION_ON_SERIALIZE</varname>
|
|
</fieldsynopsis>
|
|
<fieldsynopsis>
|
|
<modifier>public</modifier>
|
|
<modifier>const</modifier>
|
|
<type>int</type>
|
|
<varname linkend="reflectionclass.constants.skip-destructor">ReflectionClass::SKIP_DESTRUCTOR</varname>
|
|
</fieldsynopsis>
|
|
|
|
<classsynopsisinfo role="comment">&Properties;</classsynopsisinfo>
|
|
<fieldsynopsis>
|
|
<modifier>public</modifier>
|
|
<type>string</type>
|
|
<varname linkend="reflectionclass.props.name">name</varname>
|
|
</fieldsynopsis>
|
|
|
|
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
|
|
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectionclass')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='ReflectionClass'])">
|
|
<xi:fallback/>
|
|
</xi:include>
|
|
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectionclass')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='ReflectionClass'])">
|
|
<xi:fallback/>
|
|
</xi:include>
|
|
</classsynopsis>
|
|
<!-- }}} -->
|
|
|
|
</section>
|
|
|
|
|
|
<!-- {{{ ReflectionClass properties -->
|
|
<section xml:id="reflectionclass.props">
|
|
&reftitle.properties;
|
|
<variablelist>
|
|
<varlistentry xml:id="reflectionclass.props.name">
|
|
<term><varname>name</varname></term>
|
|
<listitem>
|
|
<para>
|
|
クラス名。読み込み専用で、書き込もうとすると
|
|
<classname>ReflectionException</classname> をスローします。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</section>
|
|
<!-- }}} -->
|
|
|
|
|
|
<!-- {{{ ReflectionClass constants -->
|
|
<section xml:id="reflectionclass.constants">
|
|
&reftitle.constants;
|
|
<section xml:id="reflectionclass.constants.modifiers">
|
|
<title>ReflectionClass の修飾子</title>
|
|
<variablelist>
|
|
|
|
<varlistentry xml:id="reflectionclass.constants.is-implicit-abstract">
|
|
<term>
|
|
<constant>ReflectionClass::IS_IMPLICIT_ABSTRACT</constant>
|
|
<type>int</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
抽象メソッドを持っているので <link linkend="language.oop5.abstract">
|
|
abstract</link> クラスであることを示します。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="reflectionclass.constants.is-explicit-abstract">
|
|
<term>
|
|
<constant>ReflectionClass::IS_EXPLICIT_ABSTRACT</constant>
|
|
<type>int</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
その定義から <link linkend="language.oop5.abstract">
|
|
abstract</link> クラスであることを示します。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="reflectionclass.constants.is-final">
|
|
<term>
|
|
<constant>ReflectionClass::IS_FINAL</constant>
|
|
<type>int</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
<link linkend="language.oop5.final">final</link> クラスであることを示します。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="reflectionclass.constants.is-readonly">
|
|
<term>
|
|
<constant>ReflectionClass::IS_READONLY</constant>
|
|
<type>int</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
<link linkend="language.oop5.basic.class.readonly">readonly</link> クラスであることを示します。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="reflectionclass.constants.skip-initialization-on-serialize">
|
|
<term>
|
|
<constant>ReflectionClass::SKIP_INITIALIZATION_ON_SERIALIZE</constant>
|
|
<type>int</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
<function>serialize</function>がレイジーオブジェクトの初期化を
|
|
トリガーしないことを示します。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="reflectionclass.constants.skip-destructor">
|
|
<term>
|
|
<constant>ReflectionClass::SKIP_DESTRUCTOR</constant>
|
|
<type>int</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
オブジェクトをレイジーにリセットする時に、
|
|
デストラクタが呼び出されないことを示します。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
</section>
|
|
</section>
|
|
<!-- }}} -->
|
|
|
|
<section role="changelog">
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>8.4.0</entry>
|
|
<entry>
|
|
クラス定数が型付けされました。
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>8.0.0</entry>
|
|
<entry>
|
|
<methodname>ReflectionClass::export</methodname> は、削除されました。
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</section>
|
|
</partintro>
|
|
|
|
&reference.reflection.entities.reflectionclass;
|
|
|
|
</reference>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|