PHP Class PHPParser_NodeTraverser, snowscript

Inheritance: implements PHPParser_NodeTraverserInterface
Afficher le fichier Open project: runekaagaard/snowscript Class Usage Examples

Protected Properties

Свойство Type Description
$visitors Visitors

Méthodes publiques

Méthode Description
__construct ( ) Constructs a node traverser.
addVisitor ( PHPParser_NodeVisitor $visitor ) Adds a visitor.
traverse ( array $nodes ) : PHPParser_Node[] Traverses an array of nodes using the registered visitors.

Méthodes protégées

Méthode Description
traverseArray ( array $nodes )
traverseNode ( PHPParser_Node $node )

Method Details

__construct() public méthode

Constructs a node traverser.
public __construct ( )

addVisitor() public méthode

Adds a visitor.
public addVisitor ( PHPParser_NodeVisitor $visitor )
$visitor PHPParser_NodeVisitor Visitor to add

traverse() public méthode

Traverses an array of nodes using the registered visitors.
public traverse ( array $nodes ) : PHPParser_Node[]
$nodes array Array of nodes
Résultat PHPParser_Node[] Traversed array of nodes

traverseArray() protected méthode

protected traverseArray ( array $nodes )
$nodes array

traverseNode() protected méthode

protected traverseNode ( PHPParser_Node $node )
$node PHPParser_Node

Property Details

$visitors protected_oe property

Visitors
protected $visitors