Properties

$counter

$counter : integer

计数器

Type

integer

$classNameMap

$classNameMap : array

类名映射

Type

array

Methods

newInstance()

newInstance(string  $class, mixed  ...$args) : mixed

实例化

Parameters

string $class
mixed $args variadic

Returns

mixed

newInstanceNoInit()

newInstanceNoInit(string  $class, mixed  ...$args) : void

实例化,但不初始化

Parameters

string $class
mixed $args variadic

initInstance()

initInstance(object  $object, array  $args = array()) : void

初始化Bean对象

Parameters

object $object
array $args

getObjectClass()

getObjectClass(string|object  $object) : string

获取对象类名

Parameters

string|object $object

Returns

string

getNewClassName()

getNewClassName(  $className) : string

获取新的类名

Parameters

$className

Returns

string

getTpl()

getTpl(\ReflectionClass  $ref, string  $newClassName) : string

获取类模版

Parameters

\ReflectionClass $ref
string $newClassName

Returns

string

getMethodsTpl()

getMethodsTpl(\ReflectionClass  $ref) : string

获取方法模版

Parameters

\ReflectionClass $ref

Returns

string

getMethodParamTpls()

getMethodParamTpls(\ReflectionMethod  $method) : string

获取方法参数模版们

Parameters

\ReflectionMethod $method

Returns

string

getMethodParamArgsTpl()

getMethodParamArgsTpl(\ReflectionParameter  $param) : string

获取方法参数模版

Parameters

\ReflectionParameter $param

Returns

string

getMethodParamDefineTpl()

getMethodParamDefineTpl(\ReflectionParameter  $param) : string

获取方法参数定义模版

Parameters

\ReflectionParameter $param

Returns

string

getMethodParamCallTpl()

getMethodParamCallTpl(\ReflectionParameter  $param) : string

获取方法参数调用模版

Parameters

\ReflectionParameter $param

Returns

string

getMethodReturnType()

getMethodReturnType(\ReflectionMethod  $method) : string

获取方法返回值模版

Parameters

\ReflectionMethod $method

Returns

string

hasAop()

hasAop(\ReflectionClass  $class, \ReflectionMethod  $method) : boolean

是否有Aop注入当前方法

Parameters

\ReflectionClass $class
\ReflectionMethod $method

Returns

boolean