Метод | Описание | |
---|---|---|
addVisitor ( Webmozart\Expression\Traversal\ExpressionVisitor $visitor ) | Adds a visitor to the traverser. | |
getVisitors ( ) : Webmozart\Expression\Traversal\ExpressionVisitor[] | Returns the visitors of the traverser. | |
removeVisitor ( Webmozart\Expression\Traversal\ExpressionVisitor $visitor ) | Removes a visitor from the traverser. | |
traverse ( Webmozart\Expression\Expression $expr ) : Webmozart\Expression\Expression | Traverses an expression. |
Метод | Описание | |
---|---|---|
traverseConjunction ( |
||
traverseDisjunction ( |
||
traverseForVisitor ( Webmozart\Expression\Expression $expr, Webmozart\Expression\Traversal\ExpressionVisitor $visitor ) | ||
traverseKey ( |
||
traverseNot ( Webmozart\Expression\Logic\Not $expr ) |
public addVisitor ( Webmozart\Expression\Traversal\ExpressionVisitor $visitor ) | ||
$visitor | Webmozart\Expression\Traversal\ExpressionVisitor | The visitor to add. |
public getVisitors ( ) : Webmozart\Expression\Traversal\ExpressionVisitor[] | ||
Результат | Webmozart\Expression\Traversal\ExpressionVisitor[] | The visitors. |
public removeVisitor ( Webmozart\Expression\Traversal\ExpressionVisitor $visitor ) | ||
$visitor | Webmozart\Expression\Traversal\ExpressionVisitor | The visitor to remove. |
public traverse ( Webmozart\Expression\Expression $expr ) : Webmozart\Expression\Expression | ||
$expr | Webmozart\Expression\Expression | The expression to traverse. |
Результат | Webmozart\Expression\Expression | The modified expression. May be `null` if the expression was removed entirely. |