UNPKG

ifc-expressions

Version:

Parsing and evaluation of IFC expressions

29 lines (28 loc) 860 B
import { isNullish } from "../util/IfcExpressionUtils.js"; import { Type } from "../type/Types.js"; export class ObjectAccessorValue { constructor(objectAccessorValue) { this.objectAccessorValue = objectAccessorValue; } static of(value) { return new ObjectAccessorValue(value); } getValue() { return this.objectAccessorValue; } equals(other) { return this.objectAccessorValue === other?.getValue(); } toString() { return "[Accessor for something in an IFC model]"; } getType() { return Type.IFC_OBJECT_REF; } static isObjectAccessorValueType(arg) { return (!isNullish(arg) && !isNullish(arg.objectAccessorValue) && arg.objectAccessorValue instanceof ObjectAccessorValue); } } //# sourceMappingURL=ObjectAccessorValue.js.map