PHP 클래스 Go\Instrument\Transformer\WeavingTransformer

상속: extends BaseSourceTransformer
파일 보기 프로젝트 열기: goaop/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$adviceMatcher Go\Core\AdviceMatcher
$aspectLoader Go\Core\AspectLoader Instance of aspect loader

공개 메소드들

메소드 설명
__construct ( AspectKernel $kernel, AdviceMatcher $adviceMatcher, CachePathManager $cachePathManager, AspectLoader $loader ) Constructs a weaving transformer
transform ( StreamMetaData $metadata ) : boolean This method may transform the supplied source and return a new replacement for it

비공개 메소드들

메소드 설명
adjustOriginalClass ( ReflectionClas\ReflectionClass $class, string $source, string $newParentName ) : string Adjust definition of original class source to enable extending
loadAndRegisterAspects ( array $unloadedAspects ) Utility method to load and register unloaded aspects
processFunctions ( array $advisors, StreamMetaData $metadata, Go\ParserReflection\ReflectionFileNamespace $namespace ) : boolean Performs weaving of functions in the current namespace
processSingleClass ( array $advisors, StreamMetaData $metadata, ReflectionClas\ReflectionClass $class, integer &$lineOffset ) : boolean Performs weaving of single class if needed
saveProxyToCache ( ReflectionClas\ReflectionClass $class, string | ClassProxy $child ) : string Save AOP proxy to the separate file anr returns the php source code for inclusion

메소드 상세

__construct() 공개 메소드

Constructs a weaving transformer
public __construct ( AspectKernel $kernel, AdviceMatcher $adviceMatcher, CachePathManager $cachePathManager, AspectLoader $loader )
$kernel Go\Core\AspectKernel Instance of aspect kernel
$adviceMatcher Go\Core\AdviceMatcher Advice matcher for class
$cachePathManager Go\Instrument\ClassLoading\CachePathManager Cache manager
$loader Go\Core\AspectLoader Loader for aspects

transform() 공개 메소드

This method may transform the supplied source and return a new replacement for it
public transform ( StreamMetaData $metadata ) : boolean
$metadata StreamMetaData Metadata for source
리턴 boolean Return false if transformation should be stopped

프로퍼티 상세

$adviceMatcher 보호되어 있는 프로퍼티

protected AdviceMatcher,Go\Core $adviceMatcher
리턴 Go\Core\AdviceMatcher

$aspectLoader 보호되어 있는 프로퍼티

Instance of aspect loader
protected AspectLoader,Go\Core $aspectLoader
리턴 Go\Core\AspectLoader