AggregateDescriptor.ts
24 lines
| 552 B
| video/mp2t
|
TypeScriptLexer
|
|
r34 | import { Descriptor } from "./interfaces"; | ||
| import { ActivationContext } from "./ActivationContext"; | ||||
| export class AggregateDescriptor<T> implements Descriptor { | ||||
|
|
r38 | _value: T; | ||
|
|
r34 | |||
| constructor(value: T) { | ||||
| } | ||||
| 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; | ||||
| } | ||||
| getInstance(): T { | ||||
| throw new Error("Not supported exception"); | ||||
| } | ||||
| } | ||||
