/* Generated from Java with JSweet 2.3.7 - http://www.jsweet.org */
import { TraverserFactory } from '../factories/TraverserFactory';
/**
 * @author eric.wittmann@gmail.com
 * @class
 */
var VisitorUtil = /** @class */ (function () {
    function VisitorUtil() {
    }
    VisitorUtil.visitNode = function (node, visitor) {
        node.accept(visitor);
    };
    VisitorUtil.visitTree = function (node, visitor, direction) {
        var traverser = TraverserFactory.create(node.ownerDocument(), visitor, direction);
        traverser.traverse(node);
    };
    return VisitorUtil;
}());
export { VisitorUtil };
VisitorUtil["__class"] = "io.apicurio.datamodels.core.util.VisitorUtil";
//# sourceMappingURL=VisitorUtil.js.map