Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NodeVisitorAbstract.php

class NodeVisitorAbstract

@codeCoverageIgnore

Hierarchy

  • class \PhpParser\NodeVisitorAbstract implements \PhpParser\NodeVisitor

Expanded class hierarchy of NodeVisitorAbstract

13 files declare their use of NodeVisitorAbstract
CloningVisitor.php in vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/CloningVisitor.php
CodeUnitFindingVisitor.php in vendor/phpunit/php-code-coverage/src/StaticAnalysis/CodeUnitFindingVisitor.php
CommentAnnotatingVisitor.php in vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/CommentAnnotatingVisitor.php
ComplexityCalculatingVisitor.php in vendor/sebastian/complexity/src/Visitor/ComplexityCalculatingVisitor.php
CyclomaticComplexityCalculatingVisitor.php in vendor/sebastian/complexity/src/Visitor/CyclomaticComplexityCalculatingVisitor.php

... See full list

File

vendor/nikic/php-parser/lib/PhpParser/NodeVisitorAbstract.php, line 8

Namespace

PhpParser
View source
abstract class NodeVisitorAbstract implements NodeVisitor {
    public function beforeTraverse(array $nodes) {
        return null;
    }
    public function enterNode(Node $node) {
        return null;
    }
    public function leaveNode(Node $node) {
        return null;
    }
    public function afterTraverse(array $nodes) {
        return null;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
NodeVisitor::DONT_TRAVERSE_CHILDREN public constant If NodeVisitor::enterNode() returns DONT_TRAVERSE_CHILDREN, child nodes
of the current node will not be traversed for any visitors.
NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN public constant If NodeVisitor::enterNode() returns DONT_TRAVERSE_CURRENT_AND_CHILDREN, child nodes
of the current node will not be traversed for any visitors.
NodeVisitor::REMOVE_NODE public constant If NodeVisitor::leaveNode() returns REMOVE_NODE for a node that occurs
in an array, it will be removed from the array.
NodeVisitor::REPLACE_WITH_NULL public constant If NodeVisitor::enterNode() or NodeVisitor::leaveNode() returns REPLACE_WITH_NULL,
the node will be replaced with null. This is not a legal return value if the node is part
of an array, rather than another node.
NodeVisitor::STOP_TRAVERSAL public constant If NodeVisitor::enterNode() or NodeVisitor::leaveNode() returns
STOP_TRAVERSAL, traversal is aborted.
NodeVisitorAbstract::afterTraverse public function Called once after traversal. Overrides NodeVisitor::afterTraverse 1
NodeVisitorAbstract::beforeTraverse public function Called once before traversal. Overrides NodeVisitor::beforeTraverse 5
NodeVisitorAbstract::enterNode public function Called when entering a node. Overrides NodeVisitor::enterNode 13
NodeVisitorAbstract::leaveNode public function Called when leaving a node. Overrides NodeVisitor::leaveNode 2

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal