IVariableMap interface
Variable maps are container objects responsible for storing and managing the set of variables referenced on a workspace.
Any of these methods may define invariants about which names and types are legal, and throw if they are not met.
Signature:
export interface IVariableMap<T extends IVariableModel<IVariableState>>
Methods
Method | Description |
|---|---|
Creates a new variable with the given name. If ID is not specified, the variable map should create one. Returns the new variable. | |
Returns a list of the set of types of the variables managed by this variable map. | |
Returns the variable with the given name, or null if not found. If | |
Returns a list of all of the variables of the given type managed by this variable map. | |
Changes the name of the given variable to the name provided and returns the renamed variable. |