ifc-expressions
Version:
Parsing and evaluation of IFC expressions
27 lines (26 loc) • 670 B
JavaScript
import { Type } from "../type/Types.js";
export class ReferenceValue {
constructor(value) {
this.referenceValue = value;
}
static of(value) {
return new ReferenceValue(value);
}
getValue() {
return this.referenceValue;
}
getType() {
return Type.STRING;
}
equals(other) {
return (ReferenceValue.isReferenceValueType(other) &&
other.referenceValue === this.referenceValue);
}
toString() {
return this.referenceValue;
}
static isReferenceValueType(arg) {
return typeof arg.referenceValue === "string";
}
}
//# sourceMappingURL=ReferenceValue.js.map