ifc-expressions
Version:
Parsing and evaluation of IFC expressions
31 lines (30 loc) • 832 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReferenceValue = void 0;
const Types_js_1 = require("../type/Types.js");
class ReferenceValue {
constructor(value) {
this.referenceValue = value;
}
static of(value) {
return new ReferenceValue(value);
}
getValue() {
return this.referenceValue;
}
getType() {
return Types_js_1.Type.STRING;
}
equals(other) {
return (ReferenceValue.isReferenceValueType(other) &&
other.referenceValue === this.referenceValue);
}
toString() {
return this.referenceValue;
}
static isReferenceValueType(arg) {
return typeof arg.referenceValue === "string";
}
}
exports.ReferenceValue = ReferenceValue;
//# sourceMappingURL=ReferenceValue.js.map