ifc-expressions
Version:
Parsing and evaluation of IFC expressions
40 lines (39 loc) • 1.01 kB
JavaScript
import { isNullish } from "../../util/IfcExpressionUtils.js";
import { Type } from "../../type/Types.js";
export class FuncArg {
constructor(required, name, defaultValue) {
this._required = required;
this._name = name;
this._defaultValue = defaultValue;
}
getType() {
return 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 !isNullish(this._defaultValue);
}
}
//# sourceMappingURL=FuncArg.js.map