var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
/* Generated from Java with JSweet 2.3.7 - http://www.jsweet.org */
import { CombinedVisitorAdapter } from '../../combined/visitors/CombinedVisitorAdapter';
/**
 * Finds the first path item.
 * @author eric.wittmann@gmail.com
 * @class
 * @extends CombinedVisitorAdapter
 */
var PathItemFinder = /** @class */ (function (_super) {
    __extends(PathItemFinder, _super);
    function PathItemFinder() {
        var _this = _super.call(this) || this;
        if (_this.found === undefined)
            _this.found = null;
        return _this;
    }
    /**
     * @see io.apicurio.datamodels.openapi.visitors.OasVisitorAdapter#visitPathItem(io.apicurio.datamodels.openapi.models.OasPathItem)
     * @param {OasPathItem} node
     */
    PathItemFinder.prototype.visitPathItem = function (node) {
        if (this.found == null) {
            this.found = node;
        }
    };
    /**
     * Returns true if an operation was found.
     * @return {boolean}
     */
    PathItemFinder.prototype.isFound = function () {
        return this.found != null;
    };
    return PathItemFinder;
}(CombinedVisitorAdapter));
export { PathItemFinder };
PathItemFinder["__class"] = "io.apicurio.datamodels.core.visitors.PathItemFinder";
PathItemFinder["__interfaces"] = ["io.apicurio.datamodels.core.visitors.IVisitor", "io.apicurio.datamodels.asyncapi.v2.visitors.IAai20Visitor", "io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor", "io.apicurio.datamodels.asyncapi.visitors.IAaiVisitor", "io.apicurio.datamodels.openapi.v2.visitors.IOas20Visitor", "io.apicurio.datamodels.openapi.visitors.IOasVisitor"];
//# sourceMappingURL=PathItemFinder.js.map