PHP 클래스 Neos\Flow\Aop\Pointcut\PointcutExpressionParser

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$proxyClassBuilder Neos\Flow\Aop\Builder\ProxyClassBuilder
$reflectionService Neos\Flow\Reflection\ReflectionService
$sourceHint string

공개 메소드들

메소드 설명
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
injectProxyClassBuilder ( ProxyClassBuilder $proxyClassBuilder ) : void
injectReflectionService ( ReflectionService $reflectionService ) : void
parse ( string $pointcutExpression, string $sourceHint ) : PointcutFilterComposite Parses a string pointcut expression and returns the pointcut objects accordingly

보호된 메소드들

메소드 설명
getArgumentConstraintsFromMethodArgumentsPattern ( string $methodArgumentsPattern ) : array Parses the method arguments pattern and returns the corresponding constraints array
getRuntimeEvaluationConditionsFromEvaluateString ( string $evaluateString ) : array Parses the evaluate string for runtime evaluations and returns the corresponding conditions array
getSubstringBetweenParentheses ( string $string ) : string Returns the substring of $string which is enclosed by parentheses of the first level.
getVisibilityFromSignaturePattern ( &$signaturePattern ) : string Parses the signature pattern and returns the visibility modifier if any. If a modifier was found, it will be removed from the $signaturePattern.
parseAnnotationPattern ( string &$annotationPattern, array &$annotationPropertyConstraints ) : void Parse an annotation pattern and adjust $annotationPattern and $annotationPropertyConstraints as needed.
parseDesignatorClass ( string $operator, string $classPattern, PointcutFilterComposite $pointcutFilterComposite ) : void Takes a class filter pattern and adds a so configured class filter to the filter composite object.
parseDesignatorClassAnnotatedWith ( string $operator, string $annotationPattern, PointcutFilterComposite $pointcutFilterComposite ) : void Takes a class annotation filter pattern and adds a so configured class annotation filter to the filter composite object.
parseDesignatorFilter ( string $operator, string $filterObjectName, PointcutFilterComposite $pointcutFilterComposite ) : void Adds a custom filter to the pointcut filter composite
parseDesignatorMethod ( string $operator, string $signaturePattern, PointcutFilterComposite $pointcutFilterComposite ) : void Splits the parameters of the pointcut designator "method" into a class and a method part and adds the appropriately configured filters to the filter composite object.
parseDesignatorMethodAnnotatedWith ( string $operator, string $annotationPattern, PointcutFilterComposite $pointcutFilterComposite ) : void Takes a method annotation filter pattern and adds a so configured method annotation filter to the filter composite object.
parseDesignatorPointcut ( string $operator, string $pointcutExpression, PointcutFilterComposite $pointcutFilterComposite ) : void Splits the value of the pointcut designator "pointcut" into an aspect class- and a pointcut method part and adds the appropriately configured filter to the composite object.
parseDesignatorSetting ( string $operator, string $configurationPath, PointcutFilterComposite $pointcutFilterComposite ) : void Adds a setting filter to the pointcut filter composite
parseDesignatorWithin ( string $operator, string $signaturePattern, PointcutFilterComposite $pointcutFilterComposite ) : void Adds a class type filter to the pointcut filter composite
parseRuntimeEvaluations ( string $operator, string $runtimeEvaluations, PointcutFilterComposite $pointcutFilterComposite ) : void Adds runtime evaluations to the pointcut filter composite

메소드 상세

getArgumentConstraintsFromMethodArgumentsPattern() 보호된 메소드

Parses the method arguments pattern and returns the corresponding constraints array
protected getArgumentConstraintsFromMethodArgumentsPattern ( string $methodArgumentsPattern ) : array
$methodArgumentsPattern string The arguments pattern defined in the pointcut expression
리턴 array The corresponding constraints array

getRuntimeEvaluationConditionsFromEvaluateString() 보호된 메소드

Parses the evaluate string for runtime evaluations and returns the corresponding conditions array
protected getRuntimeEvaluationConditionsFromEvaluateString ( string $evaluateString ) : array
$evaluateString string The evaluate string defined in the pointcut expression
리턴 array The corresponding constraints array

getSubstringBetweenParentheses() 보호된 메소드

Returns the substring of $string which is enclosed by parentheses of the first level.
protected getSubstringBetweenParentheses ( string $string ) : string
$string string The string to parse
리턴 string The inner part between the first level of parentheses

getVisibilityFromSignaturePattern() 보호된 메소드

Parses the signature pattern and returns the visibility modifier if any. If a modifier was found, it will be removed from the $signaturePattern.
protected getVisibilityFromSignaturePattern ( &$signaturePattern ) : string
리턴 string Visibility modifier or NULL of none was found

injectObjectManager() 공개 메소드

public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
리턴 void

injectProxyClassBuilder() 공개 메소드

public injectProxyClassBuilder ( ProxyClassBuilder $proxyClassBuilder ) : void
$proxyClassBuilder Neos\Flow\Aop\Builder\ProxyClassBuilder
리턴 void

injectReflectionService() 공개 메소드

public injectReflectionService ( ReflectionService $reflectionService ) : void
$reflectionService Neos\Flow\Reflection\ReflectionService
리턴 void

parse() 공개 메소드

Parses a string pointcut expression and returns the pointcut objects accordingly
public parse ( string $pointcutExpression, string $sourceHint ) : PointcutFilterComposite
$pointcutExpression string The expression defining the pointcut
$sourceHint string A message giving a hint on where the expression was defined. This is used in error messages.
리턴 PointcutFilterComposite A composite of class-filters, method-filters and pointcuts

parseAnnotationPattern() 보호된 메소드

Parse an annotation pattern and adjust $annotationPattern and $annotationPropertyConstraints as needed.
protected parseAnnotationPattern ( string &$annotationPattern, array &$annotationPropertyConstraints ) : void
$annotationPattern string
$annotationPropertyConstraints array
리턴 void

parseDesignatorClass() 보호된 메소드

Takes a class filter pattern and adds a so configured class filter to the filter composite object.
protected parseDesignatorClass ( string $operator, string $classPattern, PointcutFilterComposite $pointcutFilterComposite ) : void
$operator string The operator
$classPattern string The pattern expression as configuration for the class filter
$pointcutFilterComposite PointcutFilterComposite An instance of the pointcut filter composite. The result (ie. the class filter) will be added to this composite object.
리턴 void

parseDesignatorClassAnnotatedWith() 보호된 메소드

Takes a class annotation filter pattern and adds a so configured class annotation filter to the filter composite object.
protected parseDesignatorClassAnnotatedWith ( string $operator, string $annotationPattern, PointcutFilterComposite $pointcutFilterComposite ) : void
$operator string The operator
$annotationPattern string The pattern expression as configuration for the class annotation filter
$pointcutFilterComposite PointcutFilterComposite An instance of the pointcut filter composite. The result (ie. the class annotation filter) will be added to this composite object.
리턴 void

parseDesignatorFilter() 보호된 메소드

Adds a custom filter to the pointcut filter composite
protected parseDesignatorFilter ( string $operator, string $filterObjectName, PointcutFilterComposite $pointcutFilterComposite ) : void
$operator string The operator
$filterObjectName string Object Name of the custom filter (value of the designator)
$pointcutFilterComposite PointcutFilterComposite An instance of the pointcut filter composite. The result (ie. the custom filter) will be added to this composite object.
리턴 void

parseDesignatorMethod() 보호된 메소드

Splits the parameters of the pointcut designator "method" into a class and a method part and adds the appropriately configured filters to the filter composite object.
protected parseDesignatorMethod ( string $operator, string $signaturePattern, PointcutFilterComposite $pointcutFilterComposite ) : void
$operator string The operator
$signaturePattern string The pattern expression defining the class and method - the "signature"
$pointcutFilterComposite PointcutFilterComposite An instance of the pointcut filter composite. The result (ie. the class and method filter) will be added to this composite object.
리턴 void

parseDesignatorMethodAnnotatedWith() 보호된 메소드

Takes a method annotation filter pattern and adds a so configured method annotation filter to the filter composite object.
protected parseDesignatorMethodAnnotatedWith ( string $operator, string $annotationPattern, PointcutFilterComposite $pointcutFilterComposite ) : void
$operator string The operator
$annotationPattern string The pattern expression as configuration for the method annotation filter
$pointcutFilterComposite PointcutFilterComposite An instance of the pointcut filter composite. The result (ie. the method annotation filter) will be added to this composite object.
리턴 void

parseDesignatorPointcut() 보호된 메소드

Splits the value of the pointcut designator "pointcut" into an aspect class- and a pointcut method part and adds the appropriately configured filter to the composite object.
protected parseDesignatorPointcut ( string $operator, string $pointcutExpression, PointcutFilterComposite $pointcutFilterComposite ) : void
$operator string The operator
$pointcutExpression string The pointcut expression (value of the designator)
$pointcutFilterComposite PointcutFilterComposite An instance of the pointcut filter composite. The result (ie. the pointcut filter) will be added to this composite object.
리턴 void

parseDesignatorSetting() 보호된 메소드

Adds a setting filter to the pointcut filter composite
protected parseDesignatorSetting ( string $operator, string $configurationPath, PointcutFilterComposite $pointcutFilterComposite ) : void
$operator string The operator
$configurationPath string The path to the settings option, that should be used
$pointcutFilterComposite PointcutFilterComposite An instance of the pointcut filter composite. The result (ie. the custom filter) will be added to this composite object.
리턴 void

parseDesignatorWithin() 보호된 메소드

Adds a class type filter to the pointcut filter composite
protected parseDesignatorWithin ( string $operator, string $signaturePattern, PointcutFilterComposite $pointcutFilterComposite ) : void
$operator string
$signaturePattern string The pattern expression defining the class type
$pointcutFilterComposite PointcutFilterComposite An instance of the pointcut filter composite. The result (ie. the class type filter) will be added to this composite object.
리턴 void

parseRuntimeEvaluations() 보호된 메소드

Adds runtime evaluations to the pointcut filter composite
protected parseRuntimeEvaluations ( string $operator, string $runtimeEvaluations, PointcutFilterComposite $pointcutFilterComposite ) : void
$operator string The operator
$runtimeEvaluations string The runtime evaluations string
$pointcutFilterComposite PointcutFilterComposite An instance of the pointcut filter composite. The result (ie. the custom filter) will be added to this composite object.
리턴 void

프로퍼티 상세

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

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
리턴 Neos\Flow\ObjectManagement\ObjectManagerInterface

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

protected ProxyClassBuilder,Neos\Flow\Aop\Builder $proxyClassBuilder
리턴 Neos\Flow\Aop\Builder\ProxyClassBuilder

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

protected ReflectionService,Neos\Flow\Reflection $reflectionService
리턴 Neos\Flow\Reflection\ReflectionService

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

protected string $sourceHint
리턴 string