Reflection::getModifierNames
ReflectionClass::__clone
Reflection
PHP Manual
The ReflectionClass class
導入
The
ReflectionClass
class reports information about a class.
クラス概要
ReflectionClass
ReflectionClass
implements
Reflector
{
/* Constants */
const
integer
ReflectionClass::IS_IMPLICIT_ABSTRACT
= 16
;
const
integer
ReflectionClass::IS_EXPLICIT_ABSTRACT
= 32
;
const
integer
ReflectionClass::IS_FINAL
= 64
;
/* Properties */
public
$name
;
/* Methods */
final
private
void
__clone
(
void
)
__construct
(
string
$argument
)
public
static
string
export
(
mixed
$argument
[,
bool
$return
= false
] )
public
mixed
getConstant
(
string
$name
)
public
array
getConstants
(
void
)
public
object
getConstructor
(
void
)
public
array
getDefaultProperties
(
void
)
public
string
getDocComment
(
void
)
public
int
getEndLine
(
void
)
public
ReflectionExtension
getExtension
(
void
)
public
string
getExtensionName
(
void
)
public
string
getFileName
(
void
)
public
array
getInterfaceNames
(
void
)
public
array
getInterfaces
(
void
)
public
object
getMethod
(
string
$name
)
public
array
getMethods
([
string
$filter
] )
public
int
getModifiers
(
void
)
public
string
getName
(
void
)
public
string
getNamespaceName
(
void
)
public
object
getParentClass
(
void
)
public
ReflectionProperty
getProperties
([
string
$filter
] )
public
ReflectionProperty
getProperty
(
string
$name
)
public
string
getShortName
(
void
)
public
int
getStartLine
(
void
)
public
array
getStaticProperties
(
void
)
public
mixed
getStaticPropertyValue
(
string
$name
[,
string
$default
] )
public
bool
hasConstant
(
string
$name
)
public
bool
hasMethod
(
string
$name
)
public
bool
hasProperty
(
string
$name
)
public
bool
implementsInterface
(
string
$interface
)
public
bool
inNamespace
(
void
)
public
bool
isAbstract
(
void
)
public
bool
isFinal
(
void
)
public
bool
isInstance
(
string
$object
)
public
bool
isInstantiable
(
void
)
public
bool
isInterface
(
void
)
public
bool
isInternal
(
void
)
public
bool
isIterateable
(
void
)
public
bool
isSubclassOf
(
string
$class
)
public
bool
isUserDefined
(
void
)
public
object
newInstance
(
mixed
$args
[,
mixed
$...
] )
public
object
newInstanceArgs
([
array
$args
] )
public
void
setStaticPropertyValue
(
string
$name
,
string
$value
)
public
string
__toString
(
void
)
}
プロパティ
name
Prop description
定義済み定数
ReflectionClass Node Types
ReflectionClass::IS_IMPLICIT_ABSTRACT
ReflectionClass::IS_EXPLICIT_ABSTRACT
ReflectionClass::IS_FINAL
目次
ReflectionClass::__clone
? Clones object
ReflectionClass::__construct
? Constructs a ReflectionClass
ReflectionClass::export
? Exports a class
ReflectionClass::getConstant
? Gets defined constants
ReflectionClass::getConstants
? Gets constants
ReflectionClass::getConstructor
? Gets constructor
ReflectionClass::getDefaultProperties
? Gets default properties
ReflectionClass::getDocComment
? Gets doc comments
ReflectionClass::getEndLine
? Gets end line
ReflectionClass::getExtension
? Gets extension info
ReflectionClass::getExtensionName
? Gets an extensions name
ReflectionClass::getFileName
? Gets a filename
ReflectionClass::getInterfaceNames
? Gets the interface names
ReflectionClass::getInterfaces
? Gets the interfaces
ReflectionClass::getMethod
? Gets a ReflectionMethod
ReflectionClass::getMethods
? Gets a list of methods
ReflectionClass::getModifiers
? Gets modifiers
ReflectionClass::getName
? Gets class name
ReflectionClass::getNamespaceName
? Gets namespace name
ReflectionClass::getParentClass
? Gets parent class
ReflectionClass::getProperties
? Gets properties
ReflectionClass::getProperty
? Gets property
ReflectionClass::getShortName
? Gets short name
ReflectionClass::getStartLine
? Gets starting line number
ReflectionClass::getStaticProperties
? Gets static properties
ReflectionClass::getStaticPropertyValue
? Gets static property value
ReflectionClass::hasConstant
? Checks if constant is defined
ReflectionClass::hasMethod
? Checks if method is defined
ReflectionClass::hasProperty
? Checks if property is defined
ReflectionClass::implementsInterface
? Implements interface
ReflectionClass::inNamespace
? Checks if in namespace
ReflectionClass::isAbstract
? Checks if class is abstract
ReflectionClass::isFinal
? Checks if class is final
ReflectionClass::isInstance
? Checks class for instance
ReflectionClass::isInstantiable
? Checks if instantiable
ReflectionClass::isInterface
? Checks if interface
ReflectionClass::isInternal
? Checks if internal
ReflectionClass::isIterateable
? Checks if iterateable
ReflectionClass::isSubclassOf
? Checks if a subclass
ReflectionClass::isUserDefined
? Checks if user defined
ReflectionClass::newInstance
? New instance
ReflectionClass::newInstanceArgs
? New instance args
ReflectionClass::setStaticPropertyValue
? Sets static property value
ReflectionClass::__toString
? To string
Reflection::getModifierNames
ReflectionClass::__clone
Reflection
PHP Manual