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