12345678910111213141516171819202122232425262728 |
- import { StoreObject } from './storeObject';
- import { StoreValueRef } from './value/store_value_ref';
- export class StoreObjectRef extends StoreObject {
- private refObj: String;
- /**
- *
- * @param {StoreObject} stoValue
- */
- constructor (stoValue: StoreValueRef) {
- super(stoValue.type, stoValue.getRefAddress(), false);
- this.refObj = stoValue.id!;
- }
- get isRef () {
- return true;
- }
- getRefObj (): String {
- return this.refObj;
- }
- destroy () {
- return false;
- }
- }
|