2011-08-09 09:27:47 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
interface PHPParser_NodeVisitorInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Called once before traversal.
|
|
|
|
*
|
|
|
|
* @param $node
|
|
|
|
*/
|
2011-09-24 18:05:14 +02:00
|
|
|
public function beforeTraverse($node);
|
2011-08-09 09:27:47 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when entering a node.
|
|
|
|
*
|
2011-09-21 21:43:19 +02:00
|
|
|
* @param PHPParser_Node $node
|
2011-08-09 09:27:47 +02:00
|
|
|
*/
|
2011-09-24 18:05:14 +02:00
|
|
|
public function enterNode(PHPParser_Node $node);
|
2011-08-09 09:27:47 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when leaving a node.
|
|
|
|
*
|
2011-09-21 21:43:19 +02:00
|
|
|
* @param PHPParser_Node $node
|
2011-08-09 09:27:47 +02:00
|
|
|
*/
|
2011-09-24 18:05:14 +02:00
|
|
|
public function leaveNode(PHPParser_Node $node);
|
2011-08-09 09:27:47 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Called once after traversal.
|
|
|
|
*
|
|
|
|
* @param $node
|
|
|
|
*/
|
2011-09-24 18:05:14 +02:00
|
|
|
public function afterTraverse($node);
|
2011-08-09 09:27:47 +02:00
|
|
|
}
|