Class ClassReflection (namespace Nette\Reflection)
Reports information about a class.
ReflectionClass | --ClassReflection
Public Method Summary | |
---|---|
static ClassReflection |
from
(string|object $class)
|
IAnnotation |
getAnnotation
(string $name)
Returns an annotation value.
|
array |
Returns all annotations.
|
MethodReflection |
|
ExtensionReflection |
getExtension
()
|
mixed |
getExtensionMethod
(string $name)
Returns extension method.
|
void |
|
MethodReflection |
getMethod
($name)
|
void |
getMethods
([$filter =
-1 ])
|
ClassReflection |
|
void |
getProperties
([$filter =
-1 ])
|
PropertyReflection |
getProperty
($name)
|
ClassReflection |
|
bool |
hasAnnotation
(string $name)
Has class specified annotation?
|
bool |
hasEventProperty
($name)
|
ClassReflection |
setExtensionMethod
(string $name, mixed $callback)
Adds a method to class.
|
void |
__call
($name, $args)
|
& void |
__get
($name)
|
void |
__isset
($name)
|
void |
__set
($name, $value)
|
void |
__toString
()
|
void |
__unset
($name)
|
Methods Inherited From ReflectionClass (Internal Class) |
---|
constructor __construct ( $argument ), export ( $argument, [$return = ] ), getConstant ( $name ), getConstants ( ), getConstructor ( ), getDefaultProperties ( ), getDocComment ( ), getEndLine ( ), getExtension ( ), getExtensionName ( ), getFileName ( ), getInterfaceNames ( ), getInterfaces ( ), getMethod ( $name ), getMethods ( [$filter = ] ), getModifiers ( ), getName ( ), getParentClass ( ), getProperties ( [$filter = ] ), getProperty ( $name ), getStartLine ( ), getStaticProperties ( ), getStaticPropertyValue ( $name, [$default = ] ), hasConstant ( $name ), hasMethod ( $name ), hasProperty ( $name ), implementsInterface ( $interface ), isAbstract ( ), isFinal ( ), isInstance ( $object ), isInstantiable ( ), isInterface ( ), isInternal ( ), isIterateable ( ), isSubclassOf ( $class ), isUserDefined ( ), newInstance ( $args ), newInstanceArgs ( [$args = ] ), setStaticPropertyValue ( $name, $value ), __clone ( ), __toString ( ) |
Constant Summary |
---|
Constants Inherited From ReflectionClass (Internal Class) |
---|
IS_EXPLICIT_ABSTRACT = 32, IS_FINAL = 64, IS_IMPLICIT_ABSTRACT = 16 |
Variable Summary |
---|
Method Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 33 frompublic static ClassReflection from (string|object $class)
|
|||||||||||||||
line 233 getAnnotationpublic IAnnotation getAnnotation (string $name) Returns an annotation value.
|
|||||||||||||||
line 245 getAnnotationspublic array getAnnotations () Returns all annotations.
|
|||||||||||||||
line 143 getConstructorpublic MethodReflection getConstructor ()
|
|||||||||||||||
line 153 getExtensionpublic ExtensionReflection getExtension ()
|
|||||||||||||||
line 82 getExtensionMethodpublic mixed getExtensionMethod (string $name) Returns extension method.
|
|||||||||||||||
line 160 getInterfacespublic void getInterfaces ()
|
|||||||||||||||
line 170 getMethodpublic MethodReflection getMethod ($name)
|
|||||||||||||||
line 177 getMethodspublic void getMethods ([$filter =
|
|||||||||||||||
line 187 getParentClasspublic ClassReflection getParentClass ()
|
|||||||||||||||
line 194 getPropertiespublic void getProperties ([$filter =
|
|||||||||||||||
line 204 getPropertypublic PropertyReflection getProperty ($name)
|
|||||||||||||||
line 259 getReflectionpublic ClassReflection getReflection ()
|
|||||||||||||||
line 220 hasAnnotationpublic bool hasAnnotation (string $name) Has class specified annotation?
|
|||||||||||||||
line 50 hasEventPropertypublic bool hasEventProperty ($name)
|
|||||||||||||||
line 67 setExtensionMethodpublic ClassReflection setExtensionMethod (string $name, mixed $callback) Adds a method to class.
|
|||||||||||||||
line 266 __callpublic void __call ($name, $args)
|
|||||||||||||||
line 273 __getpublic void & __get ($name)
|
|||||||||||||||
line 287 __issetpublic void __isset ($name)
|
|||||||||||||||
line 280 __setpublic void __set ($name, $value)
|
|||||||||||||||
line 40 __toStringpublic void __toString ()
|
|||||||||||||||
line 294 __unsetpublic void __unset ($name)
|