ifc-expressions
Version:
Parsing and evaluation of IFC expressions
23 lines (22 loc) • 595 B
JavaScript
import { StringValue } from "../value/StringValue.js";
export class NamedObjectAccessor {
getAttribute(name) {
switch (name) {
case "name":
return new StringValue(this.getName());
case "description":
return new StringValue(this.getDescription());
}
return undefined;
}
listAttributes() {
return ["name", "description"];
}
getNestedObjectAccessor(name) {
return undefined;
}
listNestedObjects() {
return [];
}
}
//# sourceMappingURL=NamedObjectAccessor.js.map