1
/*******************************************************************************
2
* Copyright (c) 2006 QNX Software Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* QNX - Initial API and implementation
10
*******************************************************************************/
12
package org.eclipse.cdt.core.dom;
14
import org.eclipse.core.runtime.CoreException;
17
* @author Doug Schaefer
20
public interface IPDOMVisitor {
23
* Walk the nodes in a PDOM. Return true to visit the children of
24
* this node, or false to skip to the next sibling of this node.
25
* Throw CoreException to stop the visit.
27
* @param node being visited
28
* @return whether to visit children
30
public boolean visit(IPDOMNode node) throws CoreException;
33
* All children have been visited, about to go back to the parent.
35
* @param node that has just completed visitation
36
* @throws CoreException
38
public void leave(IPDOMNode node) throws CoreException;