* Sets the primitive value using the setter of the current type. * @param newValue The primitive value of the variable.
(newValue: string | float | boolean)
| 659 | * @param newValue The primitive value of the variable. |
| 660 | */ |
| 661 | setValue(newValue: string | float | boolean) { |
| 662 | if (this._type === 'string') this.setString(newValue as string); |
| 663 | else if (this._type === 'number') this.setNumber(newValue as float); |
| 664 | else if (this._type === 'boolean') this.setBoolean(newValue as boolean); |
| 665 | } |
| 666 | |
| 667 | /** |
| 668 | * Gets the primitive value using the getter of the current type. |