PHP 인터페이스 Webmozart\Expression\Traversal\ExpressionVisitor
The visitor needs to be attached to a {@link ExpressionTraverser}. The
traverser invokes the visitor for every node of the expression tree.
파일 보기
프로젝트 열기: webmozart/expression
0 사용 예제들
공개 메소드들
메소드 |
설명 |
|
enterExpression ( Webmozart\Expression\Expression $expr ) : Webmozart\Expression\Expression |
Called when the traverser enters an expression. |
|
leaveExpression ( Webmozart\Expression\Expression $expr ) : Webmozart\Expression\Expression | null |
Called when the traverser leaves an expression. |
|
메소드 상세
Called when the traverser enters an expression.
public enterExpression ( Webmozart\Expression\Expression $expr ) : Webmozart\Expression\Expression |
$expr |
Webmozart\Expression\Expression |
The expression. |
리턴 |
Webmozart\Expression\Expression |
The modified expression. |
Called when the traverser leaves an expression.
public leaveExpression ( Webmozart\Expression\Expression $expr ) : Webmozart\Expression\Expression | null |
$expr |
Webmozart\Expression\Expression |
The expression. |
리턴 |
Webmozart\Expression\Expression | null |
The modified expression or `null` if the
expression should be removed from the tree. |