forked from javascript-obfuscator/javascript-obfuscator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNodesGroup.ts
More file actions
27 lines (22 loc) · 662 Bytes
/
NodesGroup.ts
File metadata and controls
27 lines (22 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { ICustomNode } from '../interfaces/custom-nodes/ICustomNode';
import { INodesGroup } from '../interfaces/INodesGroup';
import { IOptions } from "../interfaces/IOptions";
export abstract class NodesGroup implements INodesGroup {
/**
* @type {Map<string, Node>}
*/
protected nodes: Map <string, ICustomNode> = new Map <string, ICustomNode> ();
/**
* @type {IOptions}
*/
protected options: IOptions;
constructor (options: IOptions) {
this.options = options;
}
/**
* @returns {Map<string, INode>}
*/
public getNodes (): Map <string, ICustomNode> {
return this.nodes;
}
}