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 { Constants } from '../../../core/Constants';
import { OasNodePathVisitor } from '../../visitors/OasNodePathVisitor';
/**
 * Constructor.
 * @class
 * @extends OasNodePathVisitor
 * @author eric.wittmann@gmail.com
 */
var Oas20NodePathVisitor = /** @class */ (function (_super) {
    __extends(Oas20NodePathVisitor, _super);
    function Oas20NodePathVisitor() {
        return _super.call(this) || this;
    }
    /**
     * @see io.apicurio.datamodels.openapi.v2.visitors.IOas20Visitor#visitItems(io.apicurio.datamodels.openapi.v2.models.Oas20Items)
     * @param {Oas20Items} node
     */
    Oas20NodePathVisitor.prototype.visitItems = function (node) {
        this.path.prependSegment(Constants.PROP_ITEMS, false);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v2.visitors.IOas20Visitor#visitScopes(io.apicurio.datamodels.openapi.v2.models.Oas20Scopes)
     * @param {Oas20Scopes} node
     */
    Oas20NodePathVisitor.prototype.visitScopes = function (node) {
        this.path.prependSegment(Constants.PROP_SCOPES, false);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v2.visitors.IOas20Visitor#visitSecurityDefinitions(io.apicurio.datamodels.openapi.v2.models.Oas20SecurityDefinitions)
     * @param {Oas20SecurityDefinitions} node
     */
    Oas20NodePathVisitor.prototype.visitSecurityDefinitions = function (node) {
        this.path.prependSegment(Constants.PROP_SECURITY_DEFINITIONS, false);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v2.visitors.IOas20Visitor#visitDefinitions(io.apicurio.datamodels.openapi.v2.models.Oas20Definitions)
     * @param {Oas20Definitions} node
     */
    Oas20NodePathVisitor.prototype.visitDefinitions = function (node) {
        this.path.prependSegment(Constants.PROP_DEFINITIONS, false);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v2.visitors.IOas20Visitor#visitParameterDefinitions(io.apicurio.datamodels.openapi.v2.models.Oas20ParameterDefinitions)
     * @param {Oas20ParameterDefinitions} node
     */
    Oas20NodePathVisitor.prototype.visitParameterDefinitions = function (node) {
        this.path.prependSegment(Constants.PROP_PARAMETERS, false);
    };
    /**
     * @see io.apicurio.datamodels.openapi.visitors.IOasVisitor#visitExample(io.apicurio.datamodels.core.models.common.IExample)
     * @param {*} node
     */
    Oas20NodePathVisitor.prototype.visitExample = function (node) {
        this.path.prependSegment(Constants.PROP_EXAMPLES, false);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v2.visitors.IOas20Visitor#visitHeaders(io.apicurio.datamodels.openapi.v2.models.Oas20Headers)
     * @param {Oas20Headers} node
     */
    Oas20NodePathVisitor.prototype.visitHeaders = function (node) {
        this.path.prependSegment(Constants.PROP_HEADERS, false);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v2.visitors.IOas20Visitor#visitResponseDefinitions(io.apicurio.datamodels.openapi.v2.models.Oas20ResponseDefinitions)
     * @param {Oas20ResponseDefinitions} node
     */
    Oas20NodePathVisitor.prototype.visitResponseDefinitions = function (node) {
        this.path.prependSegment(Constants.PROP_RESPONSES, false);
    };
    return Oas20NodePathVisitor;
}(OasNodePathVisitor));
export { Oas20NodePathVisitor };
Oas20NodePathVisitor["__class"] = "io.apicurio.datamodels.openapi.v2.visitors.Oas20NodePathVisitor";
Oas20NodePathVisitor["__interfaces"] = ["io.apicurio.datamodels.core.visitors.IVisitor", "io.apicurio.datamodels.openapi.v2.visitors.IOas20Visitor", "io.apicurio.datamodels.openapi.visitors.IOasVisitor"];
//# sourceMappingURL=Oas20NodePathVisitor.js.map