AggregateDescriptor.ts
24 lines
| 579 B
| video/mp2t
|
TypeScriptLexer
|
|
r34 | import { Descriptor } from "./interfaces"; | ||
| import { ActivationContext } from "./ActivationContext"; | ||||
|
|
r39 | export class AggregateDescriptor implements Descriptor { | ||
| _value: object; | ||||
|
|
r34 | |||
|
|
r39 | constructor(value: object) { | ||
| this._value = value; | ||||
|
|
r34 | } | ||
| activate(context: ActivationContext, name: string) { | ||||
| context.enter(name); | ||||
|
|
r38 | const v = context.parse(this._value, ".params"); | ||
|
|
r34 | context.leave(); | ||
| return v; | ||||
| } | ||||
| isInstanceCreated(): boolean { | ||||
| return false; | ||||
| } | ||||
|
|
r39 | getInstance(): any { | ||
| throw new Error("Not supported"); | ||||
|
|
r34 | } | ||
| } | ||||
