Methods
_convertToNumber
- _convertToNumber(num: any): void
-
Returns void
_num
- _num(numVal: any): void
-
Returns void
_str
- _str(strVal: any): void
-
Returns void
compare
- compare(sv: any): any
-
Returns any
concat
- concat(sv: any): void
-
Returns void
decrement
- decrement(): void
-
Returns void
decrementBy
- decrementBy(sv: any): void
-
Returns void
dumpString
- dumpString(): string
-
Returns string
equals
- equals(sv: any, typeCheck?: boolean): boolean
-
Parameters
-
sv: any
-
typeCheck: boolean = false
Returns boolean
getAsInt
- getAsInt(): number
-
Returns number
getAsNumber
- getAsNumber(): any
-
Returns any
getAsString
- getAsString(): any
-
Returns any
getType
- getType(): any
-
Returns any
increment
- increment(): void
-
Returns void
incrementBy
- incrementBy(sv: any): void
-
Returns void
isNumber
- isNumber(): boolean
-
Returns boolean
isString
- isString(): boolean
-
Returns boolean
setAsNumber
- setAsNumber(numValue: any): void
-
Returns void
setAsString
- setAsString(strValue: any): void
-
Returns void
setEmpty
- setEmpty(): void
-
Returns void
setValue
- setValue(v: any): void
-
Returns void
setValueNoParse
- setValueNoParse(v: any): void
-
Returns void
A switchable variable between string and number.
We still need this class in JavaScript as we can have a double meaning of null otherwise.
See
SchnackInterpreter