UNPKG

ifc-expressions

Version:

Parsing and evaluation of IFC expressions

44 lines (43 loc) 1.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FuncArg = void 0; const IfcExpressionUtils_js_1 = require("../../util/IfcExpressionUtils.js"); const Types_js_1 = require("../../type/Types.js"); class FuncArg { constructor(required, name, defaultValue) { this._required = required; this._name = name; this._defaultValue = defaultValue; } getType() { return Types_js_1.Type.ANY; } withDocumentation(displayLabel, documentation) { this._displayLabel = displayLabel; this._documentation = documentation; return this; } transformValue(callingExpr, invocationValue) { return invocationValue; } get required() { return this._required; } get name() { return this._name; } get defaultValue() { return this._defaultValue; } get displayLabel() { return this._displayLabel; } get documentation() { return this._documentation; } hasDefaultValue() { return !(0, IfcExpressionUtils_js_1.isNullish)(this._defaultValue); } } exports.FuncArg = FuncArg; //# sourceMappingURL=FuncArg.js.map