Results of 1 - 10 of about 15 for ReflectionGenerator (0.001 sec.)
- ReflectionGenerator クラス | PHP 8.3 11529
- ReflectionGenerator クラス (PHP 7, PHP 8) はじめに ReflectionGenerator クラスは、ジェネレータに関する情報を報告します。 クラス概要 final class ReflectionGenerator { /* メソッド */ public function __construct ( Generator $generator ) public
... ction isClosed (): bool } 変更履歴 バージョン 説明 8.0.0 このクラスは final として定義され、 継承できなくなりました。 目次 ReflectionGenerator::__construct — ReflectionGenerator オブジェクトを構築する ReflectionGenerator::getExecutingFile — 現在実行中のジェネレータ ... のファイル名を取得する ReflectionGenerator::getExecutingGenerator — 実行中の Generator オブジェクトを取得する ReflectionGenerator::getExecutingLine — 現在実行中のジェ ... ネレータの行を取得する ReflectionGenerator::getFunction — ジェネレータの関数名を取得する ReflectionGenerator::getThis — ジェネレータの $this の値を取得する Reflectio ...
-
https://man.mtool.work/php/8.3/class.reflectiongenerator.html
- ReflectionGenerator::__construct — ReflectionGenerator オブジェクトを構築する |... 11442
- ReflectionGenerator::__construct (PHP 7, PHP 8) ReflectionGenerator::__construct — ReflectionGenerator オブジェクトを構築する 説明 public function ReflectionGenerator::__construct ( Generator $generator ) ReflectionGenerator オブジェクトを構
... 築します。 パラメータ generator ジェネレータオブジェクト 例 例1 ReflectionGenerator::__construct() の例 <?php function gen () { yield 1 ; } $gen = gen (); $reflectionGen = new ReflectionGenerator ( $gen ); ... ExecutingFile ()} output; 上の例の出力は、 たとえば以下のようになります。 gen Line: 5 File: /path/to/file/example.php 参考 ReflectionGenerator::getFunction() - ジェネレータの関数名を取得する ReflectionGenerator::getExecutingLine() - 現在実行中のジェネレータの行を取 ... 得する ReflectionGenerator::getExecutingFile() - 現在実行中のジェネレータのファイル名を取得する 他のマニュアルの関連ページ Python 2.3 Python gen Pyth ...
-
https://man.mtool.work/php/8.3/reflectiongenerator.construct.html
- ReflectionGenerator::getFunction — ジェネレータの関数名を取得する | PHP 8.3 9961
- ReflectionGenerator::getFunction (PHP 7, PHP 8) ReflectionGenerator::getFunction — ジェネレータの関数名を取得する 説明 public function ReflectionGenerator::getFunction (): ReflectionFunctionAbstract ReflectionFunctionAbstract から派生したク
... れは 関数の場合は ReflectionFunction ですし、 メソッドの場合は ReflectionMethod になります。 変更履歴 バージョン 説明 8.4.0 ReflectionGenerator::getFunction() は、 ジェネレータの実行が終了した後に呼び出すことができるようになりました。 例 例1 ReflectionGenerator::get ... Function() の例 <?php function gen () { yield 1 ; } $gen = gen (); $reflectionGen = new ReflectionGenerator ( $gen ); var_dump ( $reflectionGen -> getFunction ()); 上の例の出力は、 たとえば以下のようになります。 object(ReflectionF ... unction)#3 (1) { ["name"]=> string(3) "gen" } 参考 ReflectionGenerator::getThis() - ジェネレータの $this の値を取得する ReflectionGenerator::getTrace() - 実行中のジェネレータのトレースを取得する ...
-
https://man.mtool.work/php/8.3/reflectiongenerator.getfunction.html
- ReflectionGenerator::getExecutingGenerator — 実行中の Generator | PHP 8.3 9840
- ReflectionGenerator::getExecutingGenerator (PHP 7, PHP 8) ReflectionGenerator::getExecutingGenerator — 実行中の Generator オブジェクトを取得する 説明 public function ReflectionGenerator::getExecutingGenerator (): Generator 実行中の Generato
... を取得します。 パラメータ この関数にはパラメータはありません。 戻り値 現在実行中の Generator オブジェクトを返します。 例 例1 ReflectionGenerator::getExecutingGenerator() の例 <?php class GenExample { public function gen () { yield 1 ; } } $gen = (new GenExample )-> g ... en (); $reflectionGen = new ReflectionGenerator ( $gen ); $gen2 = $reflectionGen -> getExecutingGenerator (); var_dump ( $gen2 === $gen ); var_dump ( $gen2 -> current ()) ... ; 上の例の出力は、 たとえば以下のようになります。 bool(true) int(1); 参考 ReflectionGenerator::getExecutingLine() - 現在実行中のジェネレータの行を取得する ReflectionGenerator::getExecutingFile() - 現在実行中のジェネレ ...
-
https://man.mtool.work/php/8.3/reflectiongenerator.getexecutinggenerator.html
- ReflectionGenerator::getExecutingLine — 現在実行中のジェネレータの行を取得する ... 9787
- ReflectionGenerator::getExecutingLine (PHP 7, PHP 8) ReflectionGenerator::getExecutingLine — 現在実行中のジェネレータの行を取得する 説明 public function ReflectionGenerator::getExecutingLine (): int 現在実行中のジェネレータの行を取得します。
... パラメータ この関数にはパラメータはありません。 戻り値 現在実行中のジェネレータの式の行番号を返します。 例 例1 ReflectionGenerator::getExecutingLine() の例 <?php class GenExample { public function gen () { yield 1 ; } } $gen = (new GenExample )-> gen () ... ; $reflectionGen = new ReflectionGenerator ( $gen ); echo "Line: { $reflectionGen -> getExecutingLine ()} " ; 上の例の出力は、 たとえば以下のようになります。 Line: 7 ... 参考 ReflectionGenerator::getExecutingGenerator() - 実行中の Generator オブジェクトを取得する ReflectionGenerator::getExecutingFile() - 現在実行中の ...
-
https://man.mtool.work/php/8.3/reflectiongenerator.getexecutingline.html
- ReflectionGenerator::getExecutingFile — 現在実行中のジェネレータのファイル名を... 9700
- ReflectionGenerator::getExecutingFile (PHP 7, PHP 8) ReflectionGenerator::getExecutingFile — 現在実行中のジェネレータのファイル名を取得する 説明 public function ReflectionGenerator::getExecutingFile (): string 現在実行中のジェネレータのファ
... 。 パラメータ この関数にはパラメータはありません。 戻り値 現在実行中のジェネレータのファイル名をフルパスを返します。 例 例1 ReflectionGenerator::getExecutingFile() の例 <?php class GenExample { public function gen () { yield 1 ; } } $gen = (new GenExample )-> gen () ... ; $reflectionGen = new ReflectionGenerator ( $gen ); echo "File: { $reflectionGen -> getExecutingFile ()} " ; 上の例の出力は、 たとえば以下のようになります。 File: / ... path/to/file/example.php 参考 ReflectionGenerator::getExecutingLine() - 現在実行中のジェネレータの行を取得する ReflectionGenerator::getExecutingGenerator() - 実行中の Gener ...
-
https://man.mtool.work/php/8.3/reflectiongenerator.getexecutingfile.html
- ReflectionGenerator::getThis — ジェネレータの $this の値を取得する | PHP 8.3 9700
- ReflectionGenerator::getThis (PHP 7, PHP 8) ReflectionGenerator::getThis — ジェネレータの $this の値を取得する 説明 public function ReflectionGenerator::getThis (): ? object ジェネレータがアクセスできる $this の値を取得します。 パラメータ こ
... りません。 戻り値 $this の値を返します。 ジェネレータがクラスコンテキストの中で作られていない場合は null を返します。 例 例1 ReflectionGenerator::getThis() の例 <?php class GenExample { public function gen () { yield 1 ; } } $gen = (new GenExample )-> gen (); $reflec ... tionGen = new ReflectionGenerator ( $gen ); var_dump ( $reflectionGen -> getThis ()); 上の例の出力は、 たとえば以下のようになります。 object(GenExample)#3 ( ... 0) { } 参考 ReflectionGenerator::getFunction() - ジェネレータの関数名を取得する ReflectionGenerator::getTrace() - 実行中のジェネレータのトレースを取得する ...
-
https://man.mtool.work/php/8.3/reflectiongenerator.getthis.html
- ReflectionGenerator::getTrace — 実行中のジェネレータのトレースを取得する | PHP ... 9178
- ReflectionGenerator::getTrace (PHP 7, PHP 8) ReflectionGenerator::getTrace — 実行中のジェネレータのトレースを取得する 説明 public function ReflectionGenerator::getTrace ( int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT ): array 現在実行中のジ
... CE_IGNORE_ARGS スタックトレース内の関数に引数の情報を含めない 戻り値 現在実行中のジェネレータのトレースを返します。 例 例1 ReflectionGenerator::getTrace() の例 <?php function foo () { yield 1 ; } function bar () { yield from foo (); } function baz () { yield from b ... ar (); } $gen = baz (); $gen -> valid (); // ジェネレータを開始 var_dump ((new ReflectionGenerator ( $gen ))-> getTrace ()); 上の例の出力は、 たとえば以下のようになります。 array(2) { [0]=> array(4) { ["file"]=> string(18 ... ) { ["file"]=> string(18) "example.php" ["line"]=> int(12) ["function"]=> string(3) "bar" ["args"]=> array(0) { } } } 参考 ReflectionGenerator::getFunction() - ジェネレータの関数名を取得する ReflectionGenerator::getThis() - ジェネレータの $this の値を取得する 他のマ ...
-
https://man.mtool.work/php/8.3/reflectiongenerator.gettrace.html
- ReflectionGenerator::isClosed — ジェネレータの実行が完了したかどうかを調べる | ... 8708
- ReflectionGenerator::isClosed (PHP 8 >= 8.4.0) ReflectionGenerator::isClosed — ジェネレータの実行が完了したかどうかを調べる 説明 public function ReflectionGenerator::isClosed (): bool 実行中のジェネレータが関数の終端やreturn文に到達したか、
... を返します。 パラメータ この関数にはパラメータはありません。 戻り値 ジェネレータの実行が完了したかどうかを返します。 例 例1 ReflectionGenerator::isClosed() の例 <?php function gen () { yield 'a' ; yield 'a' ; } $gen = gen (); $reflectionGen = new ReflectionGenerator ...
-
https://man.mtool.work/php/8.3/reflectiongenerator.isclosed.html
- リフレクション | PHP 8.3 7593
- リフレクション はじめに PHP には完全なリフレクション API が付属しており、 クラス、インターフェイス、関数、メソッド、そして拡張モジュールについて 型やプロパティを実行時に調べることができます。 さらに、このリフレクション API は関数、クラス、メ
... 字列に変換する ReflectionUnionType — ReflectionUnionType クラス ReflectionUnionType::getTypes — union 型に含まれる型を返す。 ReflectionGenerator — ReflectionGenerator クラス ReflectionGenerator::__construct — ReflectionGenerator オブジェクトを構築する ReflectionGener ... ator::getExecutingFile — 現在実行中のジェネレータのファイル名を取得する ReflectionGenerator::getExecutingGenerator — 実行中の Generator オブジェクトを取得する ReflectionGenerator::getExecutingLine — 現在実行中のジェ ... ネレータの行を取得する ReflectionGenerator::getFunction — ジェネレータの関数名を取得する ReflectionGenerator::getThis — ジェネレータの $this の値を取得する Reflectio ...
-
https://man.mtool.work/php/8.3/book.reflection.html