Php/docs/class.reflectionobject

提供:Dev Guides
< Php
移動先:案内検索

(PHP 5, PHP 7)

はじめに

ReflectionObject クラスは オブジェクトについての情報を報告します。


クラス概要


ReflectionObject extends ReflectionClass implements Reflector {

/* 継承した定数 */

const int ReflectionClass::IS_IMPLICIT_ABSTRACT = 16

const int ReflectionClass::IS_EXPLICIT_ABSTRACT = 32

const int ReflectionClass::IS_FINAL = 64

/* プロパティ */

public $name

/* メソッド */

public __construct ( object $argument )

public static export ( string $argument [, bool $return ] ) : string

/* 継承したメソッド */

public ReflectionClass::__construct ( mixed $argument )

public static ReflectionClass::export ( mixed $argument [, bool $return = false ] ) : string

public ReflectionClass::getConstant ( string $name ) : mixed

public ReflectionClass::getConstants ( ) : array

public ReflectionClass::getConstructor ( ) : object

public ReflectionClass::getDocComment ( ) : string

public ReflectionClass::getEndLine ( ) : int

public ReflectionClass::getExtensionName ( ) : string

public ReflectionClass::getFileName ( ) : string

public ReflectionClass::getInterfaces ( ) : array

public ReflectionClass::getMethod ( string $name ) : ReflectionMethod

public ReflectionClass::getMethods ([ int $filter ] ) : array

public ReflectionClass::getModifiers ( ) : int

public ReflectionClass::getName ( ) : string

public ReflectionClass::getNamespaceName ( ) : string

public ReflectionClass::getProperties ([ int $filter ] ) : array

public ReflectionClass::getShortName ( ) : string

public ReflectionClass::getStartLine ( ) : int

public ReflectionClass::getStaticPropertyValue ( string $name [, mixed &$def_value ] ) : mixed

public ReflectionClass::getTraitAliases ( ) : array

public ReflectionClass::getTraitNames ( ) : array

public ReflectionClass::getTraits ( ) : array

public ReflectionClass::hasConstant ( string $name ) : bool

public ReflectionClass::hasMethod ( string $name ) : bool

public ReflectionClass::hasProperty ( string $name ) : bool

public ReflectionClass::implementsInterface ( ReflectionClass|string $interface ) : bool

public ReflectionClass::inNamespace ( ) : bool

public ReflectionClass::isAbstract ( ) : bool

public ReflectionClass::isAnonymous ( ) : bool

public ReflectionClass::isCloneable ( ) : bool

public ReflectionClass::isFinal ( ) : bool

public ReflectionClass::isInstance ( object $object ) : bool

public ReflectionClass::isInstantiable ( ) : bool

public ReflectionClass::isInterface ( ) : bool

public ReflectionClass::isInternal ( ) : bool

public ReflectionClass::isIterable ( ) : bool

public ReflectionClass::isSubclassOf ( mixed $class ) : bool

public ReflectionClass::isTrait ( ) : bool

public ReflectionClass::isUserDefined ( ) : bool

public ReflectionClass::newInstance ( mixed ...$args ) : object

public ReflectionClass::newInstanceArgs ([ array $args ] ) : object

public ReflectionClass::setStaticPropertyValue ( string $name , mixed $value ) : void

public ReflectionClass::__toString ( ) : string

}

プロパティ

name
オブジェクトのクラス名。読み込み専用で、書き込もうとすると ReflectionException をスローします。


目次