public class AbortException
An abort exception
| Modifier and Type | Constructor / Static Method |
|---|---|
AbortException |
new()
Creates an exception with a default message
|
abstract public template Action<T1>
A base strong-typed action with a single argument
| Modifier and Type | Conversion Method |
|---|---|
Func1 |
cast()
Converts to a weak function with a single argument
|
| Modifier and Type | Method |
|---|---|
abstract |
function(T1 arg)
A function code
Must be overridden |
|
run(Enumerator<T1> en)
Executes the function for every enumeration item
|
abstract public template Action<T1,T1>
A base strong-typed action with two arguments
| Modifier and Type | Conversion Method |
|---|---|
Func2 |
cast()
Converts to a weak function with two arguments
|
| Modifier and Type | Method |
|---|---|
abstract |
function(T1 arg1, T1 arg2)
A function code
Must be overridden |
abstract public template Action<T1,T2>
A base strong-typed action with two arguments
| Modifier and Type | Conversion Method |
|---|---|
Func2 |
cast()
Converts to a weak function with two arguments
|
| Modifier and Type | Method |
|---|---|
abstract |
function(T1 arg1, T2 arg2)
A function code
Must be overridden |
abstract public template Action<T1,T2,T3>
A base strong-typed action with three arguments
| Modifier and Type | Conversion Method |
|---|---|
Func3 |
cast()
Converts to a weak function with three arguments
|
| Modifier and Type | Method |
|---|---|
abstract |
function(T1 arg1, T2 arg2, T3 arg3)
A function code
Must be overridden |
abstract public template Action<T1,T2,T3,T4>
A base strong-typed action with four arguments
| Modifier and Type | Conversion Method |
|---|---|
Func4 |
cast()
Converts to a weak function with four arguments
|
| Modifier and Type | Method |
|---|---|
abstract |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4)
A function code
Must be overridden |
abstract public template Action<T1,T2,T3,T4,T5>
A base strong-typed action with five arguments
| Modifier and Type | Conversion Method |
|---|---|
Func5 |
cast()
|
| Modifier and Type | Method |
|---|---|
abstract |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
A function code
Must be overridden |
abstract public template Action<T1,T2,T3,T4,T5,T6>
A base strong-typed action with six arguments
| Modifier and Type | Conversion Method |
|---|---|
Func6 |
cast()
Converts to a weak function with six arguments
|
| Modifier and Type | Method |
|---|---|
abstract |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
A function code
Must be overridden |
abstract public template Action<T1,T2,T3,T4,T5,T6,T7>
A base strong-typed action with seven arguments
| Modifier and Type | Conversion Method |
|---|---|
Func7 |
cast()
Converts to a weak function with seven arguments
|
| Modifier and Type | Method |
|---|---|
abstract |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
A function code
Must be overridden |
abstract public template Action<T1,T2,T3,T4,T5,T6,T7,T8>
A base strong-typed action with eight arguments
| Modifier and Type | Conversion Method |
|---|---|
Func8 |
cast()
Converts to a weak function with eight arguments
|
| Modifier and Type | Method |
|---|---|
abstract |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
A function code
Must be overridden |
abstract public template Action<T1,T2,T3,T4,T5,T6,T7,T8,T9>
A base strong-typed action with nine arguments
| Modifier and Type | Conversion Method |
|---|---|
Func9 |
cast()
Converts to a weak function with nine arguments
|
| Modifier and Type | Method |
|---|---|
abstract |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
A function code
Must be overridden |
abstract public template Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>
A base strong-typed action with ten arguments
| Modifier and Type | Conversion Method |
|---|---|
Func10 |
cast()
Converts to a weak function with ten arguments
|
| Modifier and Type | Method |
|---|---|
abstract |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
A function code
Must be overridden |
abstract public template Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>
A base strong-typed action with eleven arguments
| Modifier and Type | Conversion Method |
|---|---|
Func11 |
cast()
Converts to a weak function with eleven arguments
|
| Modifier and Type | Method |
|---|---|
abstract |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11)
A function code
Must be overridden |
public class Array
A generic array
| Modifier and Type | Field |
|---|---|
|
array
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Array |
allocate(IntNumber len)
Creates the array with the specified length
|
Array |
copy(IntNumber index, IntNumber length, Array array)
Creates a copy of the provided sub array starting at index and the specified length
|
| Modifier and Type | Static Property |
|---|---|
get Array |
MinValue()
Returns an array with a length 0
|
| Modifier and Type | Property |
|---|---|
get IntNumber |
Length()
Returns the array length
|
get system'Object[] |
Value()
Returns itself
|
| Modifier and Type | Method |
|---|---|
|
add(Array a)
Concatinates the arrays
|
Object |
at(IntNumber n)
Returns an element at the position n
|
Array |
clone()
Creates a shallow copy of the array
|
Enumerator |
enumerator()
Returns the array enumerator
|
Indexer |
indexer()
Returns the array indexer
|
|
setAt(IntNumber n, Object o)
Assigns item to the element at the position n
|
public template Array<T1>
A strong-typed array template
| Modifier and Type | Field |
|---|---|
|
array
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Array<T1> |
allocate(IntNumber length)
Creates an array with the specified length
|
Array<T1> |
copy(T1[] array, IntNumber index, IntNumber length)
Creates a copy of sub array of array starting from index with the specified length
|
| Modifier and Type | Constructor / Static Method |
|---|---|
|
copy(T1[] target, T1[] source, IntNumber index, IntNumber length)
Copies a sub array from source starting at index with the specified length into target at 0 position.
|
|
copyTo(T1[] target, T1[] source, IntNumber index, IntNumber length)
Copies source array starting with 0 position with the specified length into target at index position
|
|
move(T1[] target, IntNumber index, IntNumber length, IntNumber offset)
Moves a sub array inside target.
If index is positive moves length elements starting from offset to the array start Otherwise moves first length elements to the right on index positions |
| Modifier and Type | Static Property |
|---|---|
get T1[] |
Default()
Returns nil
|
get T1[] |
MinValue()
Returns an array with zero elements
|
| Modifier and Type | Property |
|---|---|
get IntNumber |
Length()
Returns the array length
|
| Modifier and Type | Conversion Method |
|---|---|
Enumerable |
cast()
Returns enumerable wrapper around the array
|
Array |
cast()
Creates a weak copy of the array
|
| Modifier and Type | Method |
|---|---|
T1[] |
add(T1[] a)
Concatenates the array and an argument a and returns the new array
|
T1[] |
add(T1[] a, IntNumber length)
Concatenate the array and an argument a and returns the new array
|
|
at(n)
|
T1 |
at(IntNumber n)
Returns an element at the position n
If an index is out of range, it raises InvalidArgumentException exception. |
T1[] |
clone()
Returns the shallow copy of the array
|
Enumerator<T1> |
enumerator()
Creates an array enumerator
|
Indexer<T1> |
indexer()
Creates an array indexer
|
|
setAt(n, item)
|
|
setAt(IntNumber n, T1 item)
Assigns item to the element at the position n
If an index is out of range, it raises InvalidArgumentException exception. |
public class ArrayEnumerator
A generic array enumerator
| Modifier and Type | Field |
|---|---|
Array |
array
|
Reference<system'IntNumber> |
index
|
| Modifier and Type | Constructor / Static Method |
|---|---|
ArrayEnumerator |
constructor(Array arr)
Creates an enumerator to the specified s argument
|
| Modifier and Type | Property |
|---|---|
get |
Value()
Returns the current element
|
| Modifier and Type | Method |
|---|---|
|
enumerable()
returns the enumerating array
|
BoolValue |
next()
Goes to the next enumeration member and returns true if it is not the last member
|
|
reset()
Resets the enumerator
|
public class ArrayIndexer
A generic array indexer
| Modifier and Type | Field |
|---|---|
Array |
array
|
Reference<system'IntNumber> |
index
|
| Modifier and Type | Constructor / Static Method |
|---|---|
ArrayIndexer |
constructor(Array arr)
Creates an indexer to the specified arr argument
|
| Modifier and Type | Property |
|---|---|
get BoolValue |
Available()
Returns true if there is an element with a given index in the corresponding collection
Otherwise returns false |
get IntNumber |
Index()
Index property
|
set |
Index(IntNumber val)
Index property
|
get IntNumber |
Length()
Returns the length of the indexed array
|
get |
Value()
Returns the indexed element
|
set |
Value(o)
Set the element at the current index
|
| Modifier and Type | Method |
|---|---|
|
appendIndex(IntNumber val)
Increases the current index by parameter **index**
|
abstract public class BaseEnumerator
A base generic enumerator for a collection or an array
Property getter Value must be implemented
| Modifier and Type | Field |
|---|---|
Reference<system'IntNumber> |
index
|
IntNumber |
length
|
| Modifier and Type | Method |
|---|---|
BoolValue |
next()
Increments the field index by one. If the value is smaller then the field length it returns true; returns false otherwise
|
abstract public template BaseEnumerator<T1>
A base enumerator template for a collection or an array
Property getter Value must be implemented
| Modifier and Type | Field |
|---|---|
Reference<system'IntNumber> |
index
|
IntNumber |
length
|
| Modifier and Type | Conversion Method |
|---|---|
Enumerator |
cast()
Returns a wrapper implementing a generic enumerator
|
| Modifier and Type | Method |
|---|---|
BoolValue |
next()
Increments the field index by one. If the value is smaller then the field length it returns true; returns false otherwise
|
public class BaseExtender
A base mixing.
The class must be inherited to extend the target object with extra methods
| Modifier and Type | Field |
|---|---|
Object |
object
|
| Modifier and Type | Method |
|---|---|
|
dispatch()
Redirects an income message to object field
|
BoolValue |
equal(o)
Redirects the message to object field
|
String |
toPrintable()
Redirects the message to object field
|
abstract public class BaseIndexer
A base generic indexer for a collection or an array
Property Value must be implemented
| Modifier and Type | Field |
|---|---|
Reference<system'IntNumber> |
index
|
IntNumber |
length
|
| Modifier and Type | Property |
|---|---|
get BoolValue |
Available()
Returns true if the field index is less then the field length; returns false otherwise
|
get IntNumber |
Index()
Index property over the field index
|
set |
Index(IntNumber value)
Index property over the field index
|
get IntNumber |
Length()
Length property over the field length
|
| Modifier and Type | Method |
|---|---|
|
appendIndex(IntNumber disp)
Increases the field index by a value of **disp**
|
abstract public template BaseIndexer<T1>
A base indexer template for a collection or an array
Property Value must be implemented
| Modifier and Type | Field |
|---|---|
Reference<system'IntNumber> |
index
|
IntNumber |
length
|
| Modifier and Type | Property |
|---|---|
get BoolValue |
Available()
Returns true if the field index is less then the field length; returns false otherwise
|
get IntNumber |
Index()
Index property over the field index
|
set |
Index(IntNumber index)
Index property over the field index
|
get IntNumber |
Length()
Returns a value of the field length
|
| Modifier and Type | Conversion Method |
|---|---|
Indexer |
cast()
Returns a wrapper implementing a generic indexer
|
| Modifier and Type | Method |
|---|---|
|
appendIndex(IntNumber offs)
Increases the field index by a value of **disp**
|
abstract public class BaseLazyExpression
| Modifier and Type | Method |
|---|---|
abstract |
function()
An expression code
Must be overridden |
|
dispatch()
|
abstract public class BaseNumber
a base numeric value
| Modifier and Type | Property |
|---|---|
get |
Negative()
Returns the negative value of a number
|
| Modifier and Type | Method |
|---|---|
abstract |
add(o)
Adds the value;
should be overridden |
|
add(BaseVariable var)
Adds a variable value of var argument
|
abstract |
divide(o)
Divides by the value;
should be overridden |
|
divide(BaseVariable var)
Divides by a variable value of var argument
|
abstract |
multiply(o)
Multiplies by the value;
should be overridden |
|
multiply(BaseVariable var)
Multiplies a variable value of var argument
|
abstract |
subtract(o)
Subtracts the value;
should be overridden |
|
subtract(BaseVariable var)
Subtracts a variable value of var argument
|
abstract public class BaseValue
a base value
| Modifier and Type | Method |
|---|---|
BoolValue |
equal(BaseVariable var)
Returns true if a value of a variable var is equal to the object value; otherwise, false
|
BoolValue |
greater(o)
Returns true if the object value is greater than o; otherwise, false;
by default sends less[2] to o with the object as an argument |
abstract BoolValue |
less(o)
Returns true if the object value is less than o; otherwise, false;
should be overridden |
BoolValue |
less(BaseVariable var)
Returns true if the object value is less than a value of a variable var ; otherwise, false
|
BoolValue |
notgreater(o)
Returns true if the object value is not greater than o; otherwise, false;
by default inverts the result of greater[2] operation |
BoolValue |
notless(o)
Returns true if the object value is not less than o; otherwise, false;
by default inverts the result of less[2] operation |
abstract public class BaseVariable
a variable base class
| Modifier and Type | Property |
|---|---|
get abstract |
Value()
Returns the variable value;
should be overridden |
set abstract |
Value(o)
Set the variable value;
should be overridden |
public class BitArray
An array of Boolean values
| Modifier and Type | Field |
|---|---|
system'IntNumber[] |
_array
|
IntNumber |
_length
|
| Modifier and Type | Constructor / Static Method |
|---|---|
BitArray |
allocate(IntNumber length)
Creates a bit array with the specified length
|
| Modifier and Type | Property |
|---|---|
get IntNumber |
Length()
Returns the bit array length
|
| Modifier and Type | Method |
|---|---|
|
at(index)
|
BoolValue |
at(IntNumber index)
Returns a boolean value at the specified index position
|
Enumerator<system'BoolValue> |
enumerator()
Creates a boolean enumerator
|
Indexer<system'BoolValue> |
indexer()
Creates a boolean indexer
|
|
setAt(IntNumber index, BoolValue value)
Set a boolean value at the specified index position
|
public class BitArray32
An 32-bit integer bit map
| Modifier and Type | Field |
|---|---|
IntNumber |
_value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
BitArray32 |
load(IntNumber value)
Creates a bit map from value
|
| Modifier and Type | Property |
|---|---|
get IntNumber |
Length()
Returns 32
|
| Modifier and Type | Method |
|---|---|
BoolValue |
at(IntNumber index)
Returns a bit at the specified index position
|
Enumerator<system'BoolValue> |
enumerator()
Creates a bit map enumerator
|
Indexer<system'BoolValue> |
indexer()
Creates a bit map indexer
|
|
setAt(IntNumber index, BoolValue value)
Set a boolean value of value to the specified index position
|
|
write(IntNumber value)
Copies a bit map from value
|
abstract public class BoolValue
a common boolean value
| Modifier and Type | Static Property |
|---|---|
get BoolValue |
false()
Returns false value.
|
get BoolValue |
MinValue()
Returns the default value
|
get BoolValue |
true()
Returns true value
|
| Modifier and Type | Property |
|---|---|
get abstract BoolValue |
Inverted()
Inverts the value;
has to be implemented |
| Modifier and Type | Method |
|---|---|
abstract BoolValue |
and(expr)
Executes logical AND operation;
has to be implemented |
abstract BoolValue |
clone()
clones the value;
has to be implemented |
abstract BoolValue |
equal(BoolValue f)
Returns true if an argument f is equal to the current object boolean value;
has to be implemented |
abstract |
if(trueAction)
Executes trueAction if the value is true;
has to be implemented |
abstract |
if(trueAction, falseAction)
Executes trueAction if the value is true or falseAction otherwise;
has to be implemented |
abstract |
ifnot(trueAction)
Executes an action if the value is false;
has to be implemented |
abstract |
iif(Object trueVal, Object falseVal)
Returns trueVal if the value is true or falseVal otherwise;
has to be implemented |
abstract BoolValue |
notequal(BoolValue f)
Returns true if an argument f is not equal to the current object boolean value;
has to be implemented |
abstract BoolValue |
or(expr)
Executes logical OR operation<;br/>has to be implemented
|
abstract BoolValue |
xor(expr)
Executes logical XOR operation;
has to be implemented |
public singleton BoolValue#false
| Modifier and Type | Property |
|---|---|
get BoolValue |
Inverted()
Always returns true
|
| Modifier and Type | Method |
|---|---|
BoolValue |
and(expr)
Executes logical AND operation;
Always return false |
BoolValue |
clone()
|
BoolValue |
equal(BoolValue b)
Determines whether the specified object is equal to the current object boolean value
|
|
if(trueAction)
Always returns nil
|
|
if(trueAction, elseAction)
Executes else-action
|
|
ifnot(trueAction)
Executes the action
|
|
iif(Object trueVal, Object falseVal)
Always returns falseVal.
|
BoolValue |
notequal(BoolValue b)
|
BoolValue |
or(expr)
Executes logical OR operation
|
String |
toPrintable()
Returns literal representation
|
BoolValue |
xor(expr)
Executes logical XOR operation
|
public singleton BoolValue#true
| Modifier and Type | Property |
|---|---|
get BoolValue |
Inverted()
Always returns false.
|
| Modifier and Type | Method |
|---|---|
BoolValue |
and(expr)
executes logical AND operation.
|
BoolValue |
clone()
|
BoolValue |
equal(BoolValue b)
Returns true if an argument b is true
|
|
if(trueAction)
Executes trueAction.
|
|
if(trueAction, elseAction)
Executes trueAction.
|
|
ifnot(trueAction)
Always returns nil.
|
|
iif(Object trueVal, Object falseVal)
Always returns trueVal.
|
BoolValue |
notequal(BoolValue b)
|
BoolValue |
or(expr)
Executes logical OR operation;
Always return true |
String |
toPrintable()
Returns literal representation.
|
BoolValue |
xor(expr)
Executes logical XOR operation.
|
public singleton ByteArrayConvertor
| Modifier and Type | Method |
|---|---|
IntNumber |
convert(WideString sour, IntNumber sourLen, system'ByteNumber[] dest, IntNumber destIndex, IntNumber destLen)
Converts a UTF-16 substring sour from 0 with sourLen length into a UTF-8 array and copies into dest starting at destIndex. destLen defines the maximal possible length
The number of copied bytes are returned |
public singleton ByteConvertor
| Modifier and Type | Method |
|---|---|
ByteNumber |
convert(o)
|
|
convert(IntNumber n, ref ByteNumber retVal)
|
|
convert(UIntNumber n, ref ByteNumber retVal)
|
|
convert(ShortNumber n, ref ByteNumber retVal)
|
|
convert(LongNumber n, ref ByteNumber retVal)
|
ByteNumber |
convert(BaseVariable v)
|
ByteNumber |
convert(ByteNumber b)
Returns an argument
|
ByteNumber |
convert(ShortNumber s)
Converts an argument s to a byte value
|
ByteNumber |
convert(CharValue ch)
Converts an argument ch to a byte value
|
ByteNumber |
convert(IntNumber n)
Converts an argument n to a byte value if it is possible
Otherwise raises an exception OutOfRangeException |
ByteNumber |
convert(UIntNumber n)
Converts an argument n to a byte value if it is possible
Otherwise raises an exception OutOfRangeException |
ByteNumber |
convert(LongNumber n)
Converts an argument n to a byte value if it is possible
Otherwise raises an exception OutOfRangeException |
ByteNumber |
convert(RealNumber r)
Converts an argument r to a byte value if it is possible
Otherwise raises an exception OutOfRangeException |
ByteNumber |
convert(String s, IntNumber radix)
Converts a string s to a byte value with a specified base value radix if it is possible
Otherwise raises an exception OutOfRangeException |
ByteNumber |
convert(WideString s, IntNumber radix)
Converts a string s to a byte value with a specified base value radix if it is possible
Otherwise raises an exception OutOfRangeException |
public class ByteNumber
an unsigned 8 bit integer
| Modifier and Type | Field |
|---|---|
|
_value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
ByteNumber |
constructor()
Returns the default value
|
ByteNumber |
constructor(ByteNumber b)
Creates the object with a specified value
|
ByteNumber |
constructor(IntNumber n)
Creates the object with a specified value
|
| Modifier and Type | Static Property |
|---|---|
get ByteNumber |
Default()
returns the default value (0)
|
get ByteNumber |
MaxValue()
Returns the maxial value (255)
|
get ByteNumber |
MinValue()
returns the minimal value (0)
|
| Modifier and Type | Property |
|---|---|
get ByteNumber |
BInverted()
bitwise inversion
|
| Modifier and Type | Conversion Method |
|---|---|
ShortNumber |
cast()
Returns the value as a short integer
|
IntNumber |
cast()
returns the value as an integer
|
UIntNumber |
cast()
returns the value as an unsigned integer
|
LongNumber |
cast()
Returns the value as a long integer
|
RealNumber |
cast()
Returns the value as a real number
|
| Modifier and Type | Method |
|---|---|
|
add(o)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the ByteNumber type |
ByteNumber |
add(ByteNumber n)
Returns the sum
|
ShortNumber |
add(ShortNumber n)
Returns the sum
|
IntNumber |
add(IntNumber n)
Returns the sum
|
IntNumber |
add(LongNumber n)
Returns the sum
|
RealNumber |
add(RealNumber n)
Returns the sum
|
|
band(n)
Returns the result of bitwise AND operation;
If no appropriate method overloading is found, an argument o is converted to the ByteNumber type |
ByteNumber |
band(ByteNumber n)
Returns the result of bitwise AND operation
|
ShortNumber |
band(ShortNumber n)
Returns the result of bitwise AND operation
|
IntNumber |
band(IntNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
band(LongNumber n)
Returns the result of bitwise AND operation
|
|
bor(n)
Returns the result of bitwise OR operation;
If no appropriate method overloading is found, an argument o is converted to the ByteNumber type |
ByteNumber |
bor(ByteNumber n)
Returns the result of bitwise OR operation
|
ShortNumber |
bor(ShortNumber n)
Returns the result of bitwise OR operation
|
IntNumber |
bor(IntNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bor(LongNumber n)
Returns the result of bitwise OR operation
|
|
bxor(n)
Returns the result of bitwise XOR operation;
If no appropriate method overloading is found, an argument o is converted to the ByteNumber type |
ByteNumber |
bxor(ByteNumber n)
Returns the result of bitwise XOR operation
|
ShortNumber |
bxor(ShortNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
bxor(IntNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
bxor(LongNumber n)
Returns the result of bitwise XOR operation
|
ByteNumber |
clone()
clones the value
|
|
divide(o)
Returns the result of integer division;
If no appropriate method overloading is found, an argument o is converted to the ByteNumber type |
ByteNumber |
divide(ByteNumber n)
Returns the result of integer division
|
ShortNumber |
divide(ShortNumber n)
Returns the result of integer division
|
IntNumber |
divide(IntNumber n)
Returns the result of integer division
|
IntNumber |
divide(LongNumber n)
Returns the result of integer division
|
RealNumber |
divide(RealNumber n)
Returns the result of integer division
|
BoolValue |
equal(o)
Compares the value;
If no appropriate method overloading is found, an argument o is converted to the ByteNumber type when it is possible and compared; otherwise returns false |
BoolValue |
equal(ByteNumber b)
Compares the value
|
BoolValue |
equal(ShortNumber s)
Compares the value
|
BoolValue |
equal(IntNumber n)
Compares the value
|
BoolValue |
equal(LongNumber n)
Compares the value
|
BoolValue |
equal(RealNumber n)
Compares the value
|
BoolValue |
less(o)
Returns the true if the object is less than an argument;
If no appropriate method overloading is found, an argument o is converted to the ByteNumber type when it is possible and compared |
BoolValue |
less(ByteNumber b)
Returns the true if the object is less than an argument;
otherwise returns false |
BoolValue |
less(ShortNumber s)
Returns the true if the object is less than an argument;
otherwise returns false |
BoolValue |
less(IntNumber n)
Compares the value
|
BoolValue |
less(LongNumber n)
Compares the value
|
BoolValue |
less(RealNumber n)
Compares the value
|
|
multiply(o)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the ByteNumber type |
ByteNumber |
multiply(ByteNumber n)
Returns the product
|
ShortNumber |
multiply(ShortNumber n)
Returns the product
|
IntNumber |
multiply(IntNumber n)
Returns the product
|
IntNumber |
multiply(LongNumber n)
Returns the product
|
RealNumber |
multiply(RealNumber n)
Returns the product
|
ByteNumber |
shiftLeft(IntNumber val)
shifts an integer value to the left by a specified number of bits
|
ByteNumber |
shiftRight(IntNumber val)
shifts an integer value to the right by a specified number of bits
|
|
subtract(o)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the ByteNumber type |
ByteNumber |
subtract(ByteNumber n)
Returns the difference
|
ShortNumber |
subtract(ShortNumber n)
Returns the difference
|
IntNumber |
subtract(IntNumber n)
Returns the difference
|
IntNumber |
subtract(LongNumber n)
Returns the difference
|
RealNumber |
subtract(RealNumber n)
Returns the difference
|
String |
toPrintable()
returns the literal presentation
|
| Modifier and Type | Extension Method |
|---|---|
get property ByteNumber |
Absolute()
Returns the absolute value of the byte
|
get property IntNumber |
Hashcode()
Returns the hash code of the byte
|
BoolValue |
isEven()
Returns true if the byte is even
|
BoolValue |
isNegative()
Returns true if the byte is negative
|
BoolValue |
isNonnegative()
Returns true if the byte is not negative
|
BoolValue |
isOdd()
Returns true if the byte is odd
|
BoolValue |
isPositive()
Returns true if the byte is positive
|
BoolValue |
isZero()
Returns true if the byte is zero
|
ByteNumber |
mod(Object operand)
returns the remainder of an integer division
|
ByteNumber |
power(IntNumber y)
returns the power of the byte raised to y
|
ByteNumber |
sqr()
returns the power of the byte raised to 2
|
ByteNumber |
sqrt()
returns the square root of the byte
|
public class CallStack
A call stack
| Modifier and Type | Field |
|---|---|
system'UnsafePointer[] |
_stack
|
| Modifier and Type | Constructor / Static Method |
|---|---|
CallStack |
constructor()
Collects the call stack
|
CallStack |
constructor(IntNumber trimingLevel)
Collects the call stack skipping trimingLevel
|
| Modifier and Type | Method |
|---|---|
String |
toPrintable()
Generates the call stack literal representation
|
public singleton CharConvertor
| Modifier and Type | Method |
|---|---|
CharValue |
convert(o)
Tries to converts an argument o to a UTF32 character value
|
|
convert(IntNumber n, ref CharValue retVal)
|
CharValue |
convert(IntNumber n)
Converts an argument n to a UTF32 character value
|
CharValue |
convert(String s)
Converts a literal string into a character
|
CharValue |
convert(WideString s)
Converts a wide string into a character
|
CharValue |
convert(ShortNumber w)
Converts an argument w to a UTF32 character value
|
CharValue |
convert(ByteNumber b)
Converts an argument b to a UTF32 character value
|
public class CharValue
An UTF-32 character symbol
| Modifier and Type | Field |
|---|---|
|
_value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
CharValue |
constructor()
Creates the object with a default value (0)
|
CharValue |
constructor(CharValue value)
Creates the object with specified value
|
CharValue |
load(IntNumber n)
Creates the object with specified numeric value
|
| Modifier and Type | Static Property |
|---|---|
get CharValue |
Default()
Returns the default value (0)
|
get CharValue |
MaxValue()
Returns the maximal possible character value (010FFFFh)
|
get CharValue |
MinValue()
Returns the minimal possible character value (0)
|
| Modifier and Type | Property |
|---|---|
get IntNumber |
Length()
Retuns the number of bytes to represent the symbol in UTF-8
|
get internal IntNumber |
Value()
|
get IntNumber |
WideLength()
Retuns the number of bytes to represent the symbol in UTF-16
|
| Modifier and Type | Conversion Method |
|---|---|
String |
cast()
converts the character value to the UTF8 string
|
WideString |
cast()
converts the character value to the UTF16 string
|
| Modifier and Type | Method |
|---|---|
CharValue |
clone()
Clones the value
|
BoolValue |
equal(o)
Compares the value;
If no appropriate method overloading is found, an argument o is converted to the CharValue type when it is possible and compared; otherwise returns false |
BoolValue |
equal(CharValue val)
Compares the value
|
BoolValue |
equal(IntNumber n)
Compares the value with a character numeric value
|
BoolValue |
equal(String s)
If the UTF8 string contains a single character, compares the value with an object value;
otherwise returns false |
BoolValue |
equal(WideString s)
If the UTF16 string contains a single character, compares the value with an object value;
otherwise returns false |
BoolValue |
less(o)
Returns the true if the object is less than an argument;
If no appropriate method overloading is found, an argument o is converted to the CharValue type when it is possible and compared |
BoolValue |
less(CharValue val)
Returns the true if the object value is less than an argument one;
otherwise returns false |
BoolValue |
less(String s)
If the UTF8 string contains a single character, compares the value with an object value;
otherwise returns false |
BoolValue |
less(WideString s)
If the UTF16 string contains a single character, compares the value with an object value;
otherwise returns false |
String |
toPrintable()
returns the literal presentation
|
| Modifier and Type | Extension Method |
|---|---|
get property IntNumber |
Hashcode()
Returns the hash code of the character
|
BoolValue |
isDigit()
Returns true if it is a digit character
|
BoolValue |
isLetter()
Returns true if it is a text letter character
|
BoolValue |
isLToken()
Returns true if it is an identifier character
|
BoolValue |
isNewLine()
Returns true if it is a new line character
|
BoolValue |
isWhitespace()
Returns true if it is a white space character
|
public class ClassReference
A dynamic class reference
| Modifier and Type | Field |
|---|---|
|
pointer
|
| Modifier and Type | Constructor / Static Method |
|---|---|
ClassReference |
constructor(String name)
Loads a class reference
If the symbol cannot be loaded raises SymbolLoaderException |
| Modifier and Type | Method |
|---|---|
|
dispatch()
|
public singleton Console
Console singleton
| Modifier and Type | Property |
|---|---|
get BoolValue |
KeyAvailable()
Checks if there is a record in the input stream
|
| Modifier and Type | Method |
|---|---|
|
clear()
Clear the console buffer
Cannot be supported in the file output mode |
CharValue |
readChar()
Reads the next character from the input stream
|
String |
readLine()
Reads the next line of characters from the standard input stream.
|
WideString |
readWideLine()
Reads the next line of characters from the standard input stream.
|
|
setCursorPosition(IntNumber x, IntNumber y)
Sets the console cursor at the specified position
Cannot be supported in the file output mode |
|
write(s)
Writes the specified literal value to the standard output stream.
|
|
writeLine(s)
Writes the specified literal value, followed by the current line terminator, to the standard output stream.
|
|
writeLine()
Writes the current line terminator
|
public class ConsoleHelperImpl
A class implementing Console functionality
| Modifier and Type | Field |
|---|---|
IConsoleReader |
reader
|
IConsoleWriter |
writer
|
| Modifier and Type | Constructor / Static Method |
|---|---|
ConsoleHelperImpl |
new(IConsoleReader reader, IConsoleWriter writer)
Initializes the class with the specified input reader and output writer
|
| Modifier and Type | Property |
|---|---|
get BoolValue |
KeyAvailable()
Checks if there is a record in the input stream
|
| Modifier and Type | Method |
|---|---|
|
clear()
Clear the console buffer
Cannot be supported in the file output mode |
CharValue |
readChar()
Reads the next character from the input stream
|
String |
readLine()
Reads the next line of characters from the standard input stream.
|
WideString |
readWideLine()
Reads the next line of characters from the standard input stream.
|
|
setCursorPosition(IntNumber x, IntNumber y)
Sets the console cursor at the specified position
Cannot be supported in the file output mode |
|
write(s)
Writes the specified literal value to the standard output stream.
|
|
writeLine(s)
Writes the specified literal value, followed by the current line terminator, to the standard output stream.
|
|
writeLine()
Writes the current line terminator
|
public template ConstArray<T1>
A strong-typed constant array template
| Modifier and Type | Field |
|---|---|
|
array
|
| Modifier and Type | Constructor / Static Method |
|---|---|
ConstArray<T1> |
allocate(IntNumber length)
Creates an array with the specified length
|
ConstArray<T1> |
constructor(T1[] array)
Converts array into a constant array
|
ConstArray<T1> |
copy(T1[] array, IntNumber index, IntNumber length)
Creates a copy of sub array of array starting from index with the specified length
|
| Modifier and Type | Property |
|---|---|
get IntNumber |
Length()
Returns the array length
|
| Modifier and Type | Conversion Method |
|---|---|
Enumerable |
cast()
Returns enumerable wrapper around the array
|
| Modifier and Type | Method |
|---|---|
T1 |
at(IntNumber n)
Returns an element at the position n
If an index is out of range, it raises InvalidArgumentException exception. |
T1[] |
clone()
Returns the shallow copy of the array
|
Enumerator<T1> |
enumerator()
Creates an array enumerator
|
public class COORD
| Modifier and Type | Field |
|---|---|
ShortNumber |
_x
|
ShortNumber |
_y
|
| Modifier and Type | Constructor / Static Method |
|---|---|
COORD |
constructor()
|
| Modifier and Type | Property |
|---|---|
get ShortNumber |
X()
|
get ShortNumber |
Y()
|
| Modifier and Type | Method |
|---|---|
|
write(ShortNumber x, ShortNumber y)
|
|
write(COORD r)
|
public class CriticalException
A critical exception
| Modifier and Type | Constructor / Static Method |
|---|---|
CriticalException |
new()
Creates an exception with a default message
|
public class DivisionByZeroException
A division by zero reference exception
| Modifier and Type | Constructor / Static Method |
|---|---|
DivisionByZeroException |
new()
Creates an exception with a default message
|
abstract public class Enumerable
An abstract generic enumerable class
Must be overridden
| Modifier and Type | Method |
|---|---|
abstract Enumerator |
enumerator()
Returns the generic enumerator of the class
|
abstract public template Enumerable<T1>
An abstract strong-typed enumerable class
Must be overridden
| Modifier and Type | Method |
|---|---|
abstract Enumerator<T1> |
enumerator()
Returns the strong-typed enumerator of the class
|
abstract public class Enumerator
A generic enumerator interface
| Modifier and Type | Property |
|---|---|
get abstract |
Value()
Returns the current object
|
| Modifier and Type | Method |
|---|---|
abstract |
enumerable()
returns the enumerator owner
|
Enumerator |
enumerator()
returns itself
|
abstract BoolValue |
next()
Goes to the next enumeration member and returns true if it is not the last member
|
abstract |
reset()
Resets the enumerator
|
abstract public template Enumerator<T1>
A strong-typed enumerator template
| Modifier and Type | Property |
|---|---|
get abstract T1 |
Value()
Returns the current object
|
| Modifier and Type | Conversion Method |
|---|---|
abstract Enumerator |
cast()
converts the class to the generic enumerator
|
| Modifier and Type | Method |
|---|---|
abstract |
enumerable()
returns the enumerator owner
|
Enumerator<T1> |
enumerator()
|
abstract BoolValue |
next()
Goes to the next enumeration member and returns true if it is not the last member
|
abstract |
reset()
Resets the enumerator
|
public class Exception
A basic exception
| Modifier and Type | Constructor / Static Method |
|---|---|
Exception |
new(String message)
Creates an exception with the provide message
|
Exception |
new()
Creates an exception with a class name as a message
|
| Modifier and Type | Constructor / Static Method |
|---|---|
|
raise()
Raises an exception
|
|
raise(String message)
Raises an exception with the provided message
|
| Modifier and Type | Property |
|---|---|
get String |
Message()
Returns the exception message
|
| Modifier and Type | Method |
|---|---|
|
fallback(arg)
|
|
on(handler)
|
|
raise()
Raises an exception
|
String |
toPrintable()
Returns the message and the call stack
|
public class Extension
A mixin class extending a target with an extender
| Modifier and Type | Constructor / Static Method |
|---|---|
Extension |
constructor(target, extender)
Creates a mixin
|
| Modifier and Type | Method |
|---|---|
|
dispatch()
|
public class ExtensionMessage
An extended message constant
| Modifier and Type | Field |
|---|---|
|
value
|
| Modifier and Type | Method |
|---|---|
|
dispatch()
Dequalifies incoming messages if they are equal to its value and redirects to the target
|
public class ExtensionVariable
A mixin class extending a target with an extension
| Modifier and Type | Constructor / Static Method |
|---|---|
ExtensionVariable |
constructor(target, extension)
Creates a mixin
|
| Modifier and Type | Method |
|---|---|
|
dispatch()
|
public class FormatException
Format exception
| Modifier and Type | Constructor / Static Method |
|---|---|
FormatException |
new()
Creates an exception with a default message
|
FormatException |
new(String message)
Creates the exception with the specified message
|
abstract public class Func
A base weak action without arguments
| Modifier and Type | Method |
|---|---|
abstract |
function()
An action code
Must be overridden |
|
doUntil(b)
Repeats the function until b is true. The code is executed at least once
|
|
doWhile(b)
Repeats the function while b is true
|
abstract public template Func<T1>
A base strong-typed function without arguments
| Modifier and Type | Method |
|---|---|
abstract T1 |
function()
A function code
Must be overridden |
abstract public template Func<T1,T1,system'IntNumber>
A base strong-typed function with two arguments
| Modifier and Type | Method |
|---|---|
abstract IntNumber |
function(T1 arg1, T1 arg2)
A function code
Must be overridden |
abstract public template Func<T1,T2>
A base strong-typed function with a single argument
| Modifier and Type | Method |
|---|---|
abstract T2 |
function(T1 arg)
A function code
Must be overridden |
abstract public template Func<T1,T2,T3>
A base strong-typed function with two arguments
| Modifier and Type | Method |
|---|---|
abstract T3 |
function(T1 arg1, T2 arg2)
A function code
Must be overridden |
abstract public template Func<T1,T2,T3,T4>
A base strong-typed function with three arguments
| Modifier and Type | Method |
|---|---|
abstract T4 |
function(T1 arg1, T2 arg2, T3 arg3)
A function code
Must be overridden |
abstract public template Func<T1,T2,T3,T4,T5>
A base strong-typed function with four arguments
| Modifier and Type | Method |
|---|---|
abstract T5 |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4)
A function code
Must be overridden |
abstract public template Func<T1,T2,T3,T4,T5,T6>
A base strong-typed function with five arguments
| Modifier and Type | Method |
|---|---|
abstract T6 |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
A function code
Must be overridden |
abstract public template Func<T1,T2,T3,T4,T5,T6,T7>
A base strong-typed function with six arguments
| Modifier and Type | Method |
|---|---|
abstract T7 |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
A function code
Must be overridden |
abstract public template Func<T1,T2,T3,T4,T5,T6,T7,T8>
A base strong-typed function with seven arguments
| Modifier and Type | Method |
|---|---|
abstract T8 |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
A function code
Must be overridden |
abstract public template Func<T1,T2,T3,T4,T5,T6,T7,T8,T9>
A base strong-typed function with eight arguments
| Modifier and Type | Method |
|---|---|
abstract T9 |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
A function code
Must be overridden |
abstract public template Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>
| Modifier and Type | Method |
|---|---|
abstract T10 |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
A function code
Must be overridden |
abstract public template Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>
A base strong-typed function with ten arguments
| Modifier and Type | Method |
|---|---|
abstract T11 |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
|
abstract public template Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>
A base strong-typed function with eleven arguments
| Modifier and Type | Method |
|---|---|
abstract T12 |
function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11)
A function code
Must be overridden |
abstract public class Func1
A base weak action with a single argument
| Modifier and Type | Method |
|---|---|
abstract |
function(arg1)
A function code
Must be overridden |
|
retrieve(Enumerator en)
Executes the function for every enumeration item until it returns true
|
|
run(Enumerator en)
Executes the function for every enumeration item
|
abstract public class Func10
A base weak action with ten arguments
| Modifier and Type | Method |
|---|---|
abstract |
function(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10)
A function code
Must be overridden |
|
retrieve(Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8, Object param9, Enumerator en)
Executes the function for every enumeration item with param1, param2, param3, param4, param5, param6, param7, param8 and param9 as first nine arguments until it returns true
|
|
run(Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8, Object param9, Enumerator en)
Executes the function for every enumeration item with param1, param2, param3, param4, param5, param6, param7, param8 and param9 as first nine arguments
|
abstract public class Func11
A base weak action with eleven arguments
| Modifier and Type | Method |
|---|---|
abstract |
function(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11)
A function code
Must be overridden |
|
retrieve(Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8, Object param9, Object param10, Enumerator en)
Executes the function for every enumeration item with param1, param2, param3, param4, param5, param6, param7, param8, param9 and param10 as first ten arguments until it returns true
|
|
run(Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8, Object param9, Object param10, Enumerator en)
Executes the function for every enumeration item with param1, param2, param3, param4, param5, param6, param7, param8, param9 and param10 as first ten arguments
|
abstract public class Func2
A base weak action with two arguments
| Modifier and Type | Method |
|---|---|
abstract |
function(param1, param2)
A function code
Must be overridden |
|
retrieve(Object param, Enumerator en)
Executes the function for every enumeration item with param as a first argument until it returns true
|
|
run(Object param, Enumerator en)
Executes the function for every enumeration item with param as a first argument
|
abstract public class Func3
A base weak action with three arguments
| Modifier and Type | Method |
|---|---|
abstract |
function(param1, param2, param3)
A function code
Must be overridden |
|
retrieve(Object param1, Object param2, Enumerator en)
Executes the function for every enumeration item with param1 and
|
|
run(Object param1, Object param2, Enumerator en)
Executes the function for every enumeration item with param1 and param2 as first two argument
|
abstract public class Func4
A base weak action with four arguments
| Modifier and Type | Method |
|---|---|
abstract |
function(param1, param2, param3, param4)
A function code
Must be overridden |
|
retrieve(Object param1, Object param2, Object param3, Enumerator en)
Executes the function for every enumeration item with param1, param2 and param3 as first three argument until it returns true
|
|
run(Object param1, Object param2, Object param3, Enumerator en)
Executes the function for every enumeration item with param1, param2 and param3 as first three argument
|
abstract public class Func5
A base weak action with five arguments
| Modifier and Type | Method |
|---|---|
abstract |
function(param1, param2, param3, param4, param5)
A function code
Must be overridden |
|
retrieve(Object param1, Object param2, Object param3, Object param4, Enumerator en)
Executes the function for every enumeration item with param1, param2, param3 and param4 as first four arguments until it returns true
|
|
run(Object param1, Object param2, Object param3, Object param4, Enumerator en)
Executes the function for every enumeration item with param1, param2, param3 and param4 as first four arguments
|
abstract public class Func6
A base weak action with six arguments
| Modifier and Type | Method |
|---|---|
abstract |
function(param1, param2, param3, param4, param5, param6)
A function code
Must be overridden |
|
retrieve(Object param1, Object param2, Object param3, Object param4, Object param5, Enumerator en)
Executes the function for every enumeration item with param1, param2, param3, param4 and param5 as first five arguments until it returns true
|
|
run(Object param1, Object param2, Object param3, Object param4, Object param5, Enumerator en)
Executes the function for every enumeration item with param1, param2, param3, param4 and param5 as first five arguments
|
abstract public class Func7
A base weak action with seven arguments
| Modifier and Type | Method |
|---|---|
abstract |
function(param1, param2, param3, param4, param5, param6, param7)
A function code
Must be overridden |
|
retrieve(Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Enumerator en)
Executes the function for every enumeration item with param1, param2, param3, param4, param5 and param6 as first six arguments until it returns true
|
|
run(Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Enumerator en)
Executes the function for every enumeration item with param1, param2, param3, param4, param5 and param6 as first six arguments
|
abstract public class Func8
A base weak action with eight arguments
| Modifier and Type | Method |
|---|---|
abstract |
function(param1, param2, param3, param4, param5, param6, param7, param8)
A function code
Must be overridden |
|
retrieve(Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Enumerator en)
Executes the function for every enumeration item with param1, param2, param3, param4, param5, param6 and param7 as first seven arguments until it returns true
|
|
run(Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Enumerator en)
Executes the function for every enumeration item with param1, param2, param3, param4, param5, param6 and param7 as first seven arguments
|
abstract public class Func9
A base weak action with nine arguments
| Modifier and Type | Method |
|---|---|
abstract |
function(param1, param2, param3, param4, param5, param6, param7, param8, param9)
A function code
Must be overridden |
|
retrieve(Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8, Enumerator en)
Executes the function for every enumeration item with param1, param2, param3, param4, param5, param6, param7 and param8 as first eight arguments until it returns true
|
|
run(Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8, Enumerator en)
Executes the function for every enumeration item with param1, param2, param3, param4, param5, param6, param7 and param8 as first eight arguments
|
public class Handle
Handle value
| Modifier and Type | Field |
|---|---|
|
_value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Handle |
constructor()
Creates an empty handler
|
Handle |
constructor(UnsafePointer ptr)
Creates a copy of ptr
|
Handle |
loadDirty(IntNumber value)
Initializes the handler with the provided value
|
| Modifier and Type | Static Property |
|---|---|
get Handle |
Default()
Returns an empty handler
|
| Modifier and Type | Method |
|---|---|
BoolValue |
isUnassigned()
Returns true if it is an empty handler
Otherwise returns false |
abstract public class IConsoleReader
| Modifier and Type | Property |
|---|---|
get abstract BoolValue |
KeyAvailable()
|
| Modifier and Type | Method |
|---|---|
abstract CharValue |
read()
|
abstract String |
readLine()
|
abstract WideString |
readWideLine()
|
abstract public class IConsoleWriter
| Modifier and Type | Method |
|---|---|
abstract |
clear()
|
abstract |
refresh()
|
abstract |
setCursorPosition(IntNumber x, IntNumber y)
|
abstract |
write(WideString s)
|
abstract |
write(String s)
|
abstract public class Indexable
An abstract generic indexable class
Must be overridden
| Modifier and Type | Method |
|---|---|
abstract Indexer |
indexer()
Returns the generic indexer of the class
|
abstract public template Indexable<T1>
An abstract strong-typed indexable class
Must be overridden
| Modifier and Type | Method |
|---|---|
abstract Indexer<T1> |
indexer()
Returns the strong-typed indexer of the class
|
abstract public class Indexer
A generic indexer interface
The indexer is a tape interface over a collection, allowing to move along it, setting and getting its elements by an index
| Modifier and Type | Property |
|---|---|
get abstract BoolValue |
Available()
Returns true if there is an element with a given index in the corresponding collection
Otherwise returns false |
get abstract IntNumber |
Index()
Index property
|
set abstract |
Index(IntNumber value)
Index property
|
get abstract IntNumber |
Length()
Returns the length of the corresponding collection
|
get abstract |
Value()
Returns an element the given index
|
set abstract |
Value(value)
Set an element at the given index
|
| Modifier and Type | Method |
|---|---|
abstract |
appendIndex(IntNumber index)
Increases the current index by parameter **index**
|
abstract public template Indexer<T1>
A strong-typed indexer interface
The indexer is a tape interface over a collection, allowing to move along it, setting and getting its elements by an index
| Modifier and Type | Property |
|---|---|
get abstract BoolValue |
Available()
Returns true if there is an element with a given index in the corresponding collection
Otherwise returns false |
get abstract IntNumber |
Index()
Index property
|
set abstract |
Index(IntNumber value)
Index property
|
get abstract IntNumber |
Length()
Returns the length of the corresponding collection
|
get abstract T1 |
Value()
Returns an element the given index
|
set abstract |
Value(T1 value)
Set an element at the given index
|
| Modifier and Type | Conversion Method |
|---|---|
abstract Indexer |
cast()
Converts the object to a generic indexer
|
| Modifier and Type | Method |
|---|---|
abstract |
appendIndex(IntNumber index)
Increases the current index by parameter **index**
|
abstract public class IntBaseNumber
a base integer value
| Modifier and Type | Property |
|---|---|
get abstract |
BInverted()
Returns a bitwise inverted value
|
| Modifier and Type | Method |
|---|---|
BoolValue |
allMask(operand)
Returns true if all the mask bits are set
|
BoolValue |
anyMask(operand)
Returns true if any of the mask bits are set
|
abstract |
band(o)
Executes bitwise AND operation;
should be overridden |
|
band(BaseVariable var)
Executes bitwise AND with a variable value of var argument
|
abstract |
bor(o)
Executes bitwise OR operation;
should be overridden |
|
bor(BaseVariable var)
Executes bitwise OR with a variable value of var argument
|
abstract |
bxor(o)
Executes bitwise XOR operation;
should be overridden |
|
bxor(BaseVariable var)
Executes bitwise XOR with a variable value of var argument
|
public singleton IntConvertor
| Modifier and Type | Method |
|---|---|
IntNumber |
convert(o)
Tries to convert an argument to a signed 32-bit integer
|
IntNumber |
convert(BaseVariable v)
|
IntNumber |
convert(IntNumber n)
Returns an argument
|
IntNumber |
convert(ByteNumber b)
Converts an argument b to a signed 32-bit integer value
|
IntNumber |
convert(ShortNumber s)
Converts an argument s to a signed 32-bit integer value
|
IntNumber |
convert(UIntNumber n)
Converts an argument n to a signed 32-bit integer value if it is possible
Otherwise raises an exception OutOfRangeException |
IntNumber |
convert(UShortNumber n)
Converts an argument n to a signed 32-bit integer value
|
IntNumber |
convert(CharValue ch)
Converts an argument ch to a signed 32-bit integer value
|
IntNumber |
convert(LongNumber l)
Converts an argument l to a signed 32-bit integer value if it is possible
Otherwise raises an exception OutOfRangeException |
IntNumber |
convert(RealNumber r)
Converts an argument r to a signed 32-bit integer value if it is possible
Otherwise raises an exception OutOfRangeException |
IntNumber |
convert(String s, IntNumber radix)
Converts a string s to a 32-bit signed integer value with a specified base value radix if it is possible
Otherwise raises an exception OutOfRangeException |
IntNumber |
convert(String s)
Converts a string s to a 32-bit signed integer value in a decimal representation if it is possible
Otherwise raises an exception OutOfRangeException |
IntNumber |
convert(WideString s, IntNumber radix)
Converts a string s to a 32-bit signed integer value with a specified base value radix if it is possible
Otherwise raises an exception OutOfRangeException |
IntNumber |
convert(WideString s)
Converts a string s to a 32-bit signed integer value in a decimal representation if it is possible
Otherwise raises an exception OutOfRangeException |
public class IntMatrix
A two-dimensional array of integers
| Modifier and Type | Field |
|---|---|
system'IntNumber[] |
_array
|
IntNumber |
_rows
|
IntNumber |
_columns
|
| Modifier and Type | Constructor / Static Method |
|---|---|
IntMatrix |
allocate(IntNumber rows, IntNumber columns)
Creates a two-dimensional array of rows and columns
|
| Modifier and Type | Property |
|---|---|
get IntNumber |
Columns()
Returns the number of columns
|
get IntNumber |
Length()
Returns the number of rows
|
get IntNumber |
Rows()
Returns the number of rows
|
| Modifier and Type | Method |
|---|---|
IntNumber |
at(IntNumber i, IntNumber j)
Returns the matrix element at a row i and a column j
|
|
at(IntNumber i)
Returns indexable wrapper around the matrix row at the i position
|
|
readLengthsTo(ref IntNumber rows, ref IntNumber columns)
Reads the matrix lengths to the output parameter
|
|
setAt(IntNumber i, IntNumber j, IntNumber v)
Assigns v argument to the matrix element at a row i and a column j
|
public class IntNumber
A signed 32 bit integer
| Modifier and Type | Field |
|---|---|
__int[4] |
_value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
IntNumber |
constructor()
Returns the default value
|
IntNumber |
constructor(IntNumber n)
Creates the object with specified value
|
IntNumber |
constructor(UIntNumber n)
Creates the object with specified value
|
IntNumber |
constructor(ByteNumber b)
converts the argument to IntNumber
|
IntNumber |
constructor(ShortNumber s)
converts the argument to IntNumber
|
IntNumber |
constructor(UShortNumber s)
converts the argument to IntNumber
|
| Modifier and Type | Static Property |
|---|---|
get IntNumber |
Default()
Returns the default value (0)
|
get IntNumber |
MaxValue()
Creates the object with the maximal value
|
get IntNumber |
MinValue()
Creates the object with the minimal value
|
| Modifier and Type | Property |
|---|---|
get IntNumber |
BInverted()
Bitwise inversion
|
get IntNumber |
Negative()
Returns the negated value
|
| Modifier and Type | Conversion Method |
|---|---|
ByteNumber |
cast()
Returns the byte value
|
ShortNumber |
cast()
Returns the value as a short integer
|
LongNumber |
cast()
Returns the long integer
|
RealNumber |
cast()
Returns the real number
|
UIntNumber |
cast()
Returns the unsigned integer
|
| Modifier and Type | Method |
|---|---|
|
add(o)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the IntNumber type |
IntNumber |
add(IntNumber n)
Returns the sum
|
IntNumber |
add(ByteNumber n)
Returns the sum
|
IntNumber |
add(ShortNumber n)
Returns the sum
|
LongNumber |
add(LongNumber n)
Returns the sum
|
RealNumber |
add(RealNumber n)
Returns the sum
|
BoolValue |
allMask(IntNumber operand)
Returns true if all the mask bits are set
|
BoolValue |
anyMask(IntNumber operand)
Returns true if any of the mask bits are set
|
|
band(n)
Returns the result of bitwise AND operation;
If no appropriate method overloading is found, an argument o is converted to the IntNumber type |
|
band(BaseVariable v)
Returns the result of bitwise AND operation with a variable value
|
IntNumber |
band(IntNumber n)
Returns the result of bitwise AND operation
|
IntNumber |
band(ByteNumber n)
Returns the result of bitwise AND operation
|
IntNumber |
band(ShortNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
band(LongNumber n)
Returns the result of bitwise AND operation
|
|
bor(n)
Returns the result of bitwise OR operation;
If no appropriate method overloading is found, an argument o is converted to the IntNumber type |
|
bor(BaseVariable v)
Returns the result of bitwise OR operation with a variable value
|
IntNumber |
bor(IntNumber n)
Returns the result of bitwise OR operation
|
IntNumber |
bor(ByteNumber n)
Returns the result of bitwise OR operation
|
IntNumber |
bor(ShortNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bor(LongNumber n)
Returns the result of bitwise OR operation
|
|
bxor(n)
Returns the result of bitwise XOR operation;
If no appropriate method overloading is found, an argument o is converted to the IntNumber type |
|
bxor(BaseVariable v)
Returns the result of bitwise XOR operation with a variable value
|
IntNumber |
bxor(IntNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
bxor(ByteNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
bxor(ShortNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
bxor(LongNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
clone()
Clones the value
|
|
divide(o)
Returns the result of integer division;
If no appropriate method overloading is found, an argument o is converted to the IntNumber type |
IntNumber |
divide(IntNumber n)
Returns the result of integer division
|
IntNumber |
divide(ByteNumber n)
Returns the result of integer division
|
IntNumber |
divide(ShortNumber n)
Returns the result of integer division
|
LongNumber |
divide(LongNumber n)
Returns the result of integer division
|
RealNumber |
divide(RealNumber n)
Returns the result of the division as a real number
|
BoolValue |
equal(o)
Compares the value;
If no appropriate method overloading is found, an argument o is converted to the IntNumber type when it is possible and compared; otherwise returns false |
BoolValue |
equal(ByteNumber b)
Compares the integer value
|
BoolValue |
equal(LongNumber n)
Compares the integer value
|
BoolValue |
equal(RealNumber n)
Compares the integer value
|
BoolValue |
equal(ShortNumber s)
Compares the integer value
|
BoolValue |
equal(IntNumber n)
Compares the integer value
|
BoolValue |
less(o)
Returns the true if the object is less than an argument;
If no appropriate method overloading is found, an argument o is converted to the IntNumber type when it is possible and compared |
BoolValue |
less(ByteNumber b)
Compares the integer value
|
BoolValue |
less(ShortNumber s)
Compares the integer value
|
BoolValue |
less(LongNumber n)
Compares the integer value
|
BoolValue |
less(RealNumber n)
Compares the integer value
|
BoolValue |
less(IntNumber n)
Compares the integer value
|
|
multiply(o)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the IntNumber type |
IntNumber |
multiply(IntNumber n)
Returns the product
|
IntNumber |
multiply(ByteNumber n)
Returns the product
|
IntNumber |
multiply(ShortNumber n)
Returns the product
|
LongNumber |
multiply(LongNumber n)
Returns the product
|
RealNumber |
multiply(RealNumber n)
Returns the product
|
BoolValue |
notequal(IntNumber n)
Compares the integer value
|
IntNumber |
shiftLeft(IntNumber val)
shifts an integer value to the left by a specified number of bits
|
IntNumber |
shiftRight(IntNumber val)
shifts an integer value to the right by a specified number of bits
|
|
subtract(o)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the IntNumber type |
IntNumber |
subtract(IntNumber n)
Returns the difference
|
IntNumber |
subtract(ByteNumber n)
Returns the difference
|
IntNumber |
subtract(ShortNumber n)
Returns the difference
|
LongNumber |
subtract(LongNumber n)
Returns the difference
|
RealNumber |
subtract(RealNumber n)
Returns the difference
|
String |
toPrintable()
|
| Modifier and Type | Extension Method |
|---|---|
get property IntNumber |
Absolute()
Returns the absolute value of the integer
|
get property IntNumber |
Hashcode()
Returns the hash code of the integer
|
get property ShortNumber |
High()
Returns a high word of the integer
|
BoolValue |
isEven()
Returns true if the integer is even
|
BoolValue |
isNegative()
Returns true if the integer is negative
|
BoolValue |
isNonnegative()
Returns true if the integer is not negative
|
BoolValue |
isOdd()
Returns true if the integer is odd
|
BoolValue |
isPositive()
Returns true if the integer is positive
|
BoolValue |
isZero()
Returns true if the integer is zero
|
get property ShortNumber |
Low()
Returns a low word of the integer
|
IntNumber |
mod(IntNumber operand)
returns the remainder of an integer division
|
IntNumber |
mod(Object o)
returns the remainder of an integer division
|
IntNumber |
power(IntNumber y)
returns the power of the integer raised to y
|
RealNumber |
realDiv(Object n)
returns the result of a real division
|
IntNumber |
sqr()
returns the power of the integer raised to 2
|
IntNumber |
sqrt()
returns the square root of the integer
|
public class InvalidArgumentException
Invalid argument exception
| Modifier and Type | Constructor / Static Method |
|---|---|
InvalidArgumentException |
new()
Creates the exception
|
InvalidArgumentException |
new(String argument)
Creates the exception
|
public class InvalidOperationException
Invalid exception
| Modifier and Type | Constructor / Static Method |
|---|---|
InvalidOperationException |
new()
Creates the exception
|
InvalidOperationException |
new(String message)
Creates the exception with the specified message
|
public class KeyValue
A key - value pair
Extends the object with a key property
| Modifier and Type | Constructor / Static Method |
|---|---|
KeyValue |
new(key, value)
Creates a new key-value pair
|
| Modifier and Type | Property |
|---|---|
get |
Key()
Returns the key
|
get |
Value()
Returns the value
|
set |
Value(value)
Set the key
|
| Modifier and Type | Method |
|---|---|
|
dispatch()
Redirects the incoming messages to the value
|
BoolValue |
equal(o)
Compares the argument with the object value field
|
String |
toPrintable()
returns the literal presentation of the value
|
public singleton LongConvertor
| Modifier and Type | Method |
|---|---|
LongNumber |
convert(o)
Tries to convert an argument to a signed 64-bit integer
|
LongNumber |
convert(BaseVariable v)
|
LongNumber |
convert(LongNumber l)
Returns an argument
|
LongNumber |
convert(ByteNumber b)
Converts an argument b to a signed 64-bit integer value
|
LongNumber |
convert(ShortNumber s)
Converts an argument s to a signed 64-bit integer value
|
LongNumber |
convert(IntNumber n)
Converts an argument n to a signed 64-bit integer value
|
LongNumber |
convert(UIntNumber n)
Converts an argument n to a signed 64-bit integer value
|
LongNumber |
convert(RealNumber r)
Converts an argument r to signed 64-bit integer value if it is possible
Otherwise raises an exception OutOfRangeException |
LongNumber |
convert(CharValue ch)
Converts an argument ch to a signed 64-bit integer value
|
LongNumber |
convert(String s, IntNumber radix)
Converts a string s to a 64-bit signed integer value with a specified base value radix if it is possible
Otherwise raises an exception OutOfRangeException |
LongNumber |
convert(String s)
Converts a string s to a 64-bit signed integer value in a decimal representation if it is possible
Otherwise raises an exception OutOfRangeException |
LongNumber |
convert(WideString s, IntNumber radix)
Converts a string s to a 64-bit signed integer value with a specified base value radix if it is possible
Otherwise raises an exception OutOfRangeException |
LongNumber |
convert(WideString s)
Converts a string s to a 64-bit signed integer value in a decimal representation if it is possible
Otherwise raises an exception OutOfRangeException |
public class LongNumber
A signed 64 bit integer value
| Modifier and Type | Field |
|---|---|
|
_value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
LongNumber |
constructor()
Creates the object with a default value (0)
|
LongNumber |
constructor(LongNumber n)
Creates the object with specified value
|
LongNumber |
constructor(IntNumber n)
Creates the object with specified value
|
LongNumber |
constructor(UIntNumber n)
Creates the object with specified value
|
LongNumber |
constructor(ShortNumber n)
Creates the object with specified value
|
LongNumber |
constructor(ByteNumber b)
Creates the object with specified value
|
| Modifier and Type | Static Property |
|---|---|
get LongNumber |
Default()
Returns the default value (0)
|
get LongNumber |
MaxValue()
Returns the maximal value
|
get LongNumber |
MinValue()
Returns the minimal value
|
| Modifier and Type | Property |
|---|---|
get LongNumber |
BInverted()
Bitwise inversion
|
get LongNumber |
Negative()
Returns the negated value
|
| Modifier and Type | Conversion Method |
|---|---|
IntNumber |
cast()
Returns an integer value
|
UIntNumber |
cast()
Returns an integer value
|
ShortNumber |
cast()
Returns an integer value
|
ByteNumber |
cast()
Returns an integer value
|
RealNumber |
cast()
Returns a real value
|
| Modifier and Type | Method |
|---|---|
|
add(n)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the LongNumber type |
LongNumber |
add(LongNumber n)
Returns the sum
|
LongNumber |
add(ByteNumber n)
Returns the sum
|
LongNumber |
add(ShortNumber n)
Returns the sum
|
LongNumber |
add(IntNumber n)
Returns the sum
|
LongNumber |
add(UIntNumber n)
Returns the sum
|
RealNumber |
add(RealNumber n)
Returns the sum as a real number
|
|
band(n)
Returns the result of bitwise AND operation;
If no appropriate method overloading is found, an argument o is converted to the LongNumber type |
LongNumber |
band(LongNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
band(ByteNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
band(ShortNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
band(IntNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
band(UIntNumber n)
Returns the result of bitwise AND operation
|
|
bor(n)
Returns the result of bitwise OR operation;
If no appropriate method overloading is found, an argument o is converted to the LongNumber type |
LongNumber |
bor(LongNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bor(ByteNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bor(ShortNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bor(IntNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bor(UIntNumber n)
Returns the result of bitwise OR operation
|
|
bxor(n)
Returns the result of bitwise XOR operation;
If no appropriate method overloading is found, an argument o is converted to the LongNumber type |
LongNumber |
bxor(LongNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
bxor(ByteNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
bxor(ShortNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
bxor(IntNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
bxor(UIntNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
clone()
Returns the value copy
|
|
divide(n)
Returns the result of integer division;
If no appropriate method overloading is found, an argument o is converted to the LongNumber type |
LongNumber |
divide(LongNumber n)
Returns the result of integer division
|
LongNumber |
divide(ByteNumber n)
Returns the result of integer division
|
LongNumber |
divide(ShortNumber n)
Returns the result of integer division
|
LongNumber |
divide(IntNumber n)
Returns the result of integer division
|
LongNumber |
divide(UIntNumber n)
Returns the result of integer division
|
RealNumber |
divide(RealNumber n)
Returns the result of a division as a real number
|
BoolValue |
equal(o)
Compares the value;
If no appropriate method overloading is found, an argument o is converted to the LongNumber type when it is possible and compared; otherwise returns false |
BoolValue |
equal(LongNumber n)
Compares the value
|
BoolValue |
equal(ByteNumber b)
Compares the integer value
|
BoolValue |
equal(ShortNumber s)
Compares the integer value
|
BoolValue |
equal(IntNumber n)
Compares the integer value
|
BoolValue |
equal(RealNumber n)
Compares the integer value
|
BoolValue |
less(o)
Returns the true if the object is less than an argument;
If no appropriate method overloading is found, an argument o is converted to the LongNumber type when it is possible and compared |
BoolValue |
less(LongNumber n)
Compares the value
|
BoolValue |
less(ByteNumber b)
|
BoolValue |
less(ShortNumber s)
|
BoolValue |
less(IntNumber n)
Compares the integer value
|
BoolValue |
less(RealNumber n)
Compares the integer value
|
|
multiply(n)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the LongNumber type |
LongNumber |
multiply(LongNumber n)
Returns the product
|
LongNumber |
multiply(ByteNumber n)
Returns the product
|
LongNumber |
multiply(ShortNumber n)
Returns the product
|
LongNumber |
multiply(IntNumber n)
Returns the product
|
LongNumber |
multiply(UIntNumber n)
Returns the product
|
RealNumber |
multiply(RealNumber n)
Returns the product as a real number
|
LongNumber |
shiftLeft(IntNumber val)
shifts an integer value to the right by a specified number of bits
|
LongNumber |
shiftRight(IntNumber val)
shifts an integer value to the right by a specified number of bits
|
|
subtract(n)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the LongNumber type |
LongNumber |
subtract(LongNumber n)
Returns the difference
|
LongNumber |
subtract(ByteNumber n)
Returns the difference
|
LongNumber |
subtract(ShortNumber n)
Returns the difference
|
LongNumber |
subtract(IntNumber n)
Returns the difference
|
LongNumber |
subtract(UIntNumber n)
Returns the difference
|
RealNumber |
subtract(RealNumber n)
Returns the difference as a real number
|
String |
toPrintable()
Returns literal representation.
|
| Modifier and Type | Extension Method |
|---|---|
get property LongNumber |
Absolute()
Returns the absolute value of the long integer
|
get property IntNumber |
Hashcode()
Returns the hash code of the long integer
|
get property IntNumber |
High()
Returns a high integer of the long integer
|
BoolValue |
isEven()
Returns true if the long integer is even
|
BoolValue |
isNegative()
Returns true if the long integer is negative
|
BoolValue |
isNonnegative()
Returns true if the long integer is not negative
|
BoolValue |
isOdd()
Returns true if the long integer is odd
|
BoolValue |
isPositive()
Returns true if the long integer is positive
|
BoolValue |
isZero()
Returns true if the long integer is zero
|
get property IntNumber |
Low()
Returns a low integer of the long integer
|
LongNumber |
mod(LongNumber operand)
returns the remainder of an long integer division
|
LongNumber |
mod(Object n)
returns the remainder of an long integer division
|
LongNumber |
power(LongNumber y)
returns the power of the long integer raised to y
|
LongNumber |
power(IntNumber y)
returns the power of the long integer raised to y
|
RealNumber |
realDiv(Object n)
returns the result of a real division
|
LongNumber |
sqr()
returns the power of the long integer raised to 2
|
LongNumber |
sqrt()
returns the square root of the long integer
|
public template Matrix<T1>
A two-dimensional strong-type array
| Modifier and Type | Constructor / Static Method |
|---|---|
Matrix<T1> |
allocate(rows, columns)
|
Matrix<T1> |
allocate(IntNumber rows, IntNumber columns)
Creates a two-dimensional array of rows and columns
|
Matrix<T1> |
load(params)
|
| Modifier and Type | Property |
|---|---|
get IntNumber |
Columns()
Returns the number of columns
|
get IntNumber |
Length()
Returns the number of rows
|
get IntNumber |
Rows()
Returns the number of rows
|
| Modifier and Type | Method |
|---|---|
T1 |
at(IntNumber i, IntNumber j)
Returns the matrix element at a row i and a column j
|
|
at(i)
Returns i-th row as an array
|
Enumerator |
enumerator()
Creates a weak matrix enumerator
It goes from the first row till the last one for each column |
|
setAt(IntNumber i, IntNumber j, T1 v)
Assigns v argument to the matrix element at a row i and a column j
|
public class Message
A message constant
| Modifier and Type | Field |
|---|---|
|
value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Message |
constructor(String name)
Loads the message with the specified name
|
| Modifier and Type | Static Property |
|---|---|
get Message |
Default()
Returns a default value
|
| Modifier and Type | Property |
|---|---|
get MessageName |
MessageName()
Returns true if the message name
|
| Modifier and Type | Method |
|---|---|
|
dispatch()
Overrides the incomming message name with the message value and redirects to the target
|
BoolValue |
equal(Message mssg)
Returns true if the message is equal to mssg
|
String |
toPrintable()
Returns a message literal constant
|
public class MessageLoaderException
Message cannot be loaded exception
| Modifier and Type | Constructor / Static Method |
|---|---|
MessageLoaderException |
new(String messageName)
Creates the exception with the specified messageName
|
public class MessageName
A message name constant
| Modifier and Type | Field |
|---|---|
|
value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
MessageName |
constructor(String s)
Creates a dynamic signature
|
internal MessageName |
load(Message mssg)
|
| Modifier and Type | Static Property |
|---|---|
get MessageName |
Default()
Returns a default value
|
| Modifier and Type | Property |
|---|---|
get Message |
VariadicMessage()
Returns a variadic message
|
| Modifier and Type | Method |
|---|---|
|
dispatch()
Qualifies incoming messages and redirects to the target
|
BoolValue |
equal(MessageName subject)
Returns true if the message name is equal to subject
|
Message |
getPropertyMessage()
Returns a property getter message
|
Message |
setPropertyMessage()
Returns a property setter message
|
String |
toPrintable()
Returns a message name as a literal constant
|
public class MethodNotFoundException
Method not fount exception
| Modifier and Type | Constructor / Static Method |
|---|---|
MethodNotFoundException |
new(Object target, Message mssg)
Creates an exception with a default message
|
public singleton MssgConvertor
| Modifier and Type | Method |
|---|---|
|
convert(IntNumber n, ref Message retVal)
|
Message |
convert(IntNumber n)
Converting int value to the string
NOTE : unsafe operation |
public class NilReferenceException
A nil reference exception
| Modifier and Type | Constructor / Static Method |
|---|---|
NilReferenceException |
new()
Creates an exception with a default message
|
public singleton NilValue
A nil value
| Modifier and Type | Method |
|---|---|
|
dispatch()
|
BoolValue |
equal(object)
Returns true if the specified object is nil. Otherwise the result is false
|
|
typecast:#generic()
Returns nil
Any typecasting message will be handled and nil value returned |
public class NotSupportedException
Not supported exception
| Modifier and Type | Constructor / Static Method |
|---|---|
NotSupportedException |
new()
Creates an exception with a default message
|
NotSupportedException |
new(String message)
Creates an exception with the specified message
|
public class Object
a common ancestor
| Modifier and Type | Constructor / Static Method |
|---|---|
Object |
constructor()
Creates an object
|
| Modifier and Type | Method |
|---|---|
|
dispatch()
Implements a message dispatching in VMT
|
BoolValue |
equal(o)
Returns true if the specified object is equal to the current object; otherwise, false. By default compares the object references.
|
predefined BoolValue |
greater(arg1)
|
predefined BoolValue |
less(arg1)
|
BoolValue |
notequal(o)
Returns true if the specified object is not equal to the current object; otherwise, false. By default it inverts the result of equal[2].
|
predefined BoolValue |
notgreater(arg1)
|
predefined BoolValue |
notless(arg1)
|
String |
toPrintable()
Returns the string representation. By default it returns the class name.
|
| Modifier and Type | Extension Method |
|---|---|
|
__getClass()
Returns the object class
|
String |
__getClassName()
Returns the object class name
|
|
__getParent()
Returns the parent of the specified class
|
|
__getParentClass()
Returns the parent class
|
|
back(Object o)
Returns the parameter
|
|
doWith(Object action)
Invokes action function passing the object as an argument
|
|
enterCriticalSection()
Locks the object
|
BoolValue |
equalReference(Object o)
Returns true if the specified object instances are equal; otherwise, false.
|
|
fillString(Object s, IntNumber counter)
Writes the argument s to the object, counter times
The object must support write message |
BoolValue |
instanceOf(Object type)
Checks if the object is an instance of type
|
BoolValue |
isEmpty()
Returns true if the object length is 0
|
BoolValue |
isInteger()
Returns true if the object is an integer number
|
BoolValue |
isLiteral()
Returns true if the object is literal or character
|
BoolValue |
isNil()
Returns true if the object is nil
|
BoolValue |
isNonempty()
Returns true if the object length is not 0
|
BoolValue |
isNumber()
Returns true if the object is a number
|
|
leaveCriticalSection()
Unlocks the object
|
BoolValue |
safeEqual(Object o)
Returns true if the parameter is equal to the object or false. It does not raise an exception if the objects are not compatible
|
Array |
Subarray(IntNumber index, IntNumber length)
Returns a sub array of the collection starting from index and with the specified length
The object must support indexer message |
BoolValue |
subsetOf(Object type)
Returns true if the object is an instance of a child of type
|
|
then(Func f)
Executes the parameter function
|
|
then(Func1 f)
Executes the parameter function and pass itself as a parameter
|
|
writeCopies(Object line, IntNumber counter)
Writes the argument line to the object, counter times
The object must support write message |
|
writePadding(Object line, CharValue ch, IntNumber width)
Writes the argument line into the object padded with a characterch from the both sides so that the total length equals to width
The object must support write message |
|
writePaddingLeft(Object line, CharValue ch, IntNumber width)
Writes the argument line into the object padded from the beginning with a characterch so that the total length equals to width
The object must support write message |
|
writePaddingLeft(Object line, IntNumber width)
Writes the argument line into the object padded from the beginning with a space so that the total length equals to width
The object must support write message |
|
writePaddingRight(Object line, CharValue ch, IntNumber width)
Writes the argument line into the object padded from the ending with a characterch so that the total length equals to width
The object must support write message |
|
writePaddingRight(Object line, IntNumber width)
Writes the argument line into the object padded from the ending with a space so that the total length equals to width
The object must support write message |
public class OutOfMemoryException
Out of memory exception
public class OutOfRangeException
Out of range exception
| Modifier and Type | Constructor / Static Method |
|---|---|
OutOfRangeException |
new()
Creates an exception with a default message
|
OutOfRangeException |
new(String message)
Creates the exception with the specified message
|
public class PropertyMessageName
A property name constant
| Modifier and Type | Field |
|---|---|
|
value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
PropertyMessageName |
constructor(String s)
Creates a dynamic signature
|
internal PropertyMessageName |
load(Message mssg)
Create a property name constant from the specified message mssg
|
| Modifier and Type | Static Property |
|---|---|
get MessageName |
Default()
Returns a default value
|
| Modifier and Type | Method |
|---|---|
|
dispatch()
Qualifies incoming messages and redirects to the target
|
BoolValue |
equal(MessageName subject)
Returns true if the message name is equal to subject
|
String |
toPrintable()
Returns a property name as a literal constant
|
public class Range
represents a range that has start and end indexes.
The class support Enumerable interface
| Modifier and Type | Constructor / Static Method |
|---|---|
Range |
constructor(IntNumber start, IntNumber count)
creates a range with the specified start position. count contains the length of the range
|
Range |
for(IntNumber start, IntNumber end)
creates a range with the specified start and end positions
|
Range |
new(IntNumber start, IntNumber count)
creates a range with the specified start position. count contains the length of the range
|
| Modifier and Type | Property |
|---|---|
get IntNumber |
Length()
returns the length of the range
|
| Modifier and Type | Conversion Method |
|---|---|
Enumerable |
cast()
Returns a wrapper implementing a generic enumerator
|
| Modifier and Type | Method |
|---|---|
Enumerator<system'IntNumber> |
enumerator()
returns the range enumerator
|
public singleton RealConvertor
| Modifier and Type | Method |
|---|---|
RealNumber |
convert(o)
Tries to convert an argument to a 64-bit float numeric value
|
RealNumber |
convert(RealNumber r)
Returns an argument
|
RealNumber |
convert(BaseVariable v)
|
RealNumber |
convert(String s)
Converts a string s to a 64-bit float numeric value if it is possible
Otherwise raises an exception OutOfRangeException |
RealNumber |
convert(WideString w)
Converts a string s to a 64-bit float numeric value if it is possible
Otherwise raises an exception OutOfRangeException |
RealNumber |
convert(ByteNumber b)
Converts an argument b to a 64-bit float numeric value
|
RealNumber |
convert(ShortNumber s)
Converts an argument s to a 64-bit float numeric value
|
RealNumber |
convert(IntNumber n)
Converts an argument n to a 64-bit float numeric value
|
RealNumber |
convert(UIntNumber n)
Converts an argument n to a 64-bit float numeric value
|
RealNumber |
convert(LongNumber l)
Converts an argument l to a 64-bit float numeric value
|
public class RealMatrix
A two-dimensional array of real numbers
| Modifier and Type | Field |
|---|---|
system'RealNumber[] |
_array
|
IntNumber |
_rows
|
IntNumber |
_columns
|
| Modifier and Type | Constructor / Static Method |
|---|---|
RealMatrix |
allocate(IntNumber rows, IntNumber columns)
Creates a two-dimensional array of rows and columns
|
| Modifier and Type | Property |
|---|---|
get IntNumber |
Columns()
Returns the number of columns
|
get IntNumber |
Length()
Returns the number of rows
|
get IntNumber |
Rows()
Returns the number of rows
|
| Modifier and Type | Method |
|---|---|
RealNumber |
at(IntNumber i, IntNumber j)
Returns the matrix element at a row i and a column j
|
|
at(IntNumber i)
Returns indexable wrapper around the matrix row at the i position
|
|
read(IntNumber i, IntNumber j, ref RealNumber retVal)
Reads a real value at the specified position and saves it into an output variable
|
|
readLengthsTo(ref IntNumber rows, ref IntNumber columns)
Reads the matrix lengths to the output parameter
|
|
setAt(IntNumber i, IntNumber j, RealNumber v)
Assigns v argument to the matrix element at a row i and a column j
|
public class RealNumber
A 64bit float numeric value
| Modifier and Type | Field |
|---|---|
|
_value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
RealNumber |
constructor(IntNumber n)
Converts the value
|
RealNumber |
constructor(ByteNumber n)
Converts the value
|
RealNumber |
constructor(ShortNumber n)
Converts the value
|
RealNumber |
constructor()
Creates the object with a default value (0)
|
RealNumber |
constructor(RealNumber r)
Creates the object with specified value
|
RealNumber |
constructor(UIntNumber n)
Creates the object with specified value
|
RealNumber |
constructor(LongNumber n)
Creates the object with specified value
|
| Modifier and Type | Static Property |
|---|---|
get RealNumber |
Default()
Returns the default value (0)
|
get RealNumber |
MaxValue()
Returns the maximal value
|
get RealNumber |
MinValue()
Returns the minimal value
|
get RealNumber |
NaN()
Returns the positive infinity
|
get RealNumber |
NegativeInfinity()
Returns the negative infinity
|
get RealNumber |
Pi()
Returns Pi value
|
get RealNumber |
PositiveInfinity()
Returns the positive infinity
|
| Modifier and Type | Property |
|---|---|
get RealNumber |
Negative()
Negates the value
|
| Modifier and Type | Method |
|---|---|
|
add(n)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the RealNumber type |
RealNumber |
add(RealNumber n)
Returns the sum
|
RealNumber |
add(IntNumber n)
Returns the sum of numbers
|
RealNumber |
add(LongNumber n)
Returns the sum of numbers
|
RealNumber |
add(ByteNumber n)
Returns the sum of numbers
|
RealNumber |
add(ShortNumber n)
Returns the sum of numbers
|
RealNumber |
clone()
Clones the value
|
|
divide(n)
Returns the result of integer division;
If no appropriate method overloading is found, an argument o is converted to the RealNumber type |
RealNumber |
divide(RealNumber n)
Returns the result of integer division
|
RealNumber |
divide(IntNumber n)
Returns the result of the division
|
RealNumber |
divide(LongNumber n)
Returns the result of the division
|
RealNumber |
divide(ByteNumber n)
Returns the result of the division
|
RealNumber |
divide(ShortNumber n)
Returns the result of the division
|
BoolValue |
equal(o)
Compares the value;
If no appropriate method overloading is found, an argument o is converted to the RealNumber type when it is possible and compared; otherwise returns false |
BoolValue |
equal(RealNumber n)
Compares the value
|
BoolValue |
equal(IntNumber n)
Returns the result of integer division
|
BoolValue |
equal(ByteNumber n)
Returns the result of integer division
|
BoolValue |
equal(ShortNumber n)
Returns the result of integer division
|
BoolValue |
equal(LongNumber n)
Returns the result of integer division
|
BoolValue |
less(n)
Returns the true if the object is less than an argument;
If no appropriate method overloading is found, an argument o is converted to the LongNumber type when it is possible and compared |
BoolValue |
less(RealNumber n)
Compares the value
|
BoolValue |
less(IntNumber n)
Returns the result of integer division
|
BoolValue |
less(ByteNumber n)
Returns the result of integer division
|
BoolValue |
less(ShortNumber n)
Returns the result of integer division
|
BoolValue |
less(LongNumber n)
Returns the result of integer division
|
|
multiply(n)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the RealNumber type |
RealNumber |
multiply(RealNumber n)
Returns the product
|
RealNumber |
multiply(IntNumber n)
Returns the product of numbers
|
RealNumber |
multiply(LongNumber n)
Returns the product of numbers
|
RealNumber |
multiply(ByteNumber n)
Returns the product of numbers
|
RealNumber |
multiply(ShortNumber n)
Returns the product of numbers
|
|
subtract(n)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the RealNumber type |
RealNumber |
subtract(RealNumber n)
Returns the difference
|
RealNumber |
subtract(IntNumber n)
Returns the difference of numbers
|
RealNumber |
subtract(LongNumber n)
Returns the difference of numbers
|
RealNumber |
subtract(ByteNumber n)
Returns the difference of numbers
|
RealNumber |
subtract(ShortNumber n)
Returns the difference of numbers
|
String |
toPrintable()
Returns the literal presentation
|
| Modifier and Type | Extension Method |
|---|---|
get property RealNumber |
Absolute()
Returns the absolute value of the real number
|
RealNumber |
arccos()
returns the trigonometric inverse cosines (arccos) of the real number
|
RealNumber |
arcsin()
returns the trigonometric inverse sines (arcsin) of the real number
|
RealNumber |
arctan()
returns the trigonometric inverse tangents (arctan) of the real number
|
RealNumber |
ceil()
Returns the smallest integer value not less than the real number
|
RealNumber |
cos()
returns the trigonometric cosines of the real number
|
get property RealNumber |
Degree()
Returns the real number as a degree
|
RealNumber |
exp()
Returns the result of e raised to the power of the real number
|
RealNumber |
floor()
Round numbers down to the nearest integer
|
RealNumber |
frac()
Returns the fractional part of the real number
|
get property IntNumber |
Hashcode()
Returns the hash code of the real number
|
get property RealNumber |
Integer()
Returns the integer part of the real number
|
get property IntNumber |
IntegerInt()
Returns the integer part as an integer of the real number
|
BoolValue |
isNegative()
Returns true if the real number is negative
|
BoolValue |
isNonnegative()
Returns true if the real number is not negative
|
BoolValue |
isPositive()
Returns true if the real number is positive
|
BoolValue |
isZero()
Returns true if the real number is zero
|
RealNumber |
ln()
returns the natural logarithm of the real number
|
RealNumber |
log10()
returns the base 10 logarithm of the real number
|
RealNumber |
log2()
returns the base 2 logarithm of the real number
|
RealNumber |
power(RealNumber y)
returns the power of the real number raised to y
|
RealNumber |
power(IntNumber y)
returns the power of the real number raised to y
|
get property RealNumber |
Radian()
Returns the real number as a radian
|
get property RealNumber |
Reciprocal()
Returns the reciprocal (1/x) of the real number
|
RealNumber |
round(IntNumber precision)
Returns the real number rounded to precision digits after the dot
|
get property RealNumber |
Rounded()
Rounds real number
|
get property IntNumber |
RoundedInt()
Rounds real number as an integer
|
RealNumber |
sin()
returns the trigonometric sines of the real number
|
RealNumber |
sqr()
returns the power of the real number raised to 2
|
RealNumber |
sqrt()
returns the square root of the real number
|
RealNumber |
tan()
returns the trigonometric tangents of the real number
|
RealNumber |
truncate(IntNumber precision)
Returns the real number truncated to precision digits after the dot
|
public template Reference<T1>
a variable template
| Modifier and Type | Field |
|---|---|
T1 |
value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Reference<T1> |
constructor(T1 val)
Initializes a variable
|
| Modifier and Type | Property |
|---|---|
get T1 |
Value()
Returns the variable value
|
set |
Value(T1 val)
Set the variable value
|
| Modifier and Type | Conversion Method |
|---|---|
T1 |
cast()
Returns the variable value
|
| Modifier and Type | Method |
|---|---|
|
dispatch()
|
BoolValue |
equal(o)
Returns true if o is equal to the variable value; otherwise, false
|
String |
toPrintable()
Returns the value string representation
|
public singleton SByteConvertor
| Modifier and Type | Method |
|---|---|
|
convert(IntNumber n, ref SByteNumber retVal)
|
SByteNumber |
convert(IntNumber n)
Converts an argument n to a signed byte value if it is possible
Otherwise raises an exception OutOfRangeException |
public class SByteNumber
a signed 8 bit integer
| Modifier and Type | Field |
|---|---|
|
_value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
SByteNumber |
constructor()
Returns the default value
|
SByteNumber |
constructor(SByteNumber b)
Creates the object with a specified value
|
SByteNumber |
constructor(IntNumber n)
Creates the object with a specified value
|
| Modifier and Type | Static Property |
|---|---|
get SByteNumber |
Default()
Returns the default value
|
get SByteNumber |
MaxValue()
Returns the maxial value (128)
|
get SByteNumber |
MinValue()
returns the minimal value (-127)
|
| Modifier and Type | Property |
|---|---|
get SByteNumber |
BInverted()
bitwise inversion
|
| Modifier and Type | Conversion Method |
|---|---|
ShortNumber |
cast()
Returns the value as a short integer
|
IntNumber |
cast()
returns the value as an integer
|
UIntNumber |
cast()
returns the value as an unsigned integer
|
LongNumber |
cast()
Returns the value as a long integer
|
RealNumber |
cast()
Returns the value as a real number
|
| Modifier and Type | Method |
|---|---|
|
add(o)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the SByteNumber type |
SByteNumber |
add(SByteNumber n)
Returns the sum
|
ShortNumber |
add(ShortNumber n)
Returns the sum
|
IntNumber |
add(IntNumber n)
Returns the sum
|
IntNumber |
add(LongNumber n)
Returns the sum
|
RealNumber |
add(RealNumber n)
Returns the sum
|
|
band(n)
Returns the result of bitwise AND operation;
If no appropriate method overloading is found, an argument o is converted to the SByteNumber type |
SByteNumber |
band(SByteNumber n)
Returns the result of bitwise AND operation
|
ShortNumber |
band(ShortNumber n)
Returns the result of bitwise AND operation
|
IntNumber |
band(IntNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
band(LongNumber n)
Returns the result of bitwise AND operation
|
|
bor(n)
Returns the result of bitwise OR operation;
If no appropriate method overloading is found, an argument o is converted to the SByteNumber type |
SByteNumber |
bor(SByteNumber n)
Returns the result of bitwise OR operation
|
ShortNumber |
bor(ShortNumber n)
Returns the result of bitwise OR operation
|
IntNumber |
bor(IntNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bor(LongNumber n)
Returns the result of bitwise OR operation
|
|
bxor(n)
Returns the result of bitwise XOR operation;
If no appropriate method overloading is found, an argument o is converted to the SByteNumber type |
SByteNumber |
bxor(SByteNumber n)
Returns the result of bitwise XOR operation
|
ShortNumber |
bxor(ShortNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
bxor(IntNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
bxor(LongNumber n)
Returns the result of bitwise XOR operation
|
SByteNumber |
clone()
clones the value
|
|
divide(o)
Returns the result of integer division;
If no appropriate method overloading is found, an argument o is converted to the SByteNumber type |
SByteNumber |
divide(SByteNumber n)
Returns the result of integer division
|
ShortNumber |
divide(ShortNumber n)
Returns the result of integer division
|
IntNumber |
divide(IntNumber n)
Returns the result of integer division
|
IntNumber |
divide(LongNumber n)
Returns the result of integer division
|
RealNumber |
divide(RealNumber n)
Returns the result of integer division
|
BoolValue |
equal(o)
Compares the value;
If no appropriate method overloading is found, an argument o is converted to the SByteNumber type when it is possible and compared; otherwise returns false |
BoolValue |
equal(SByteNumber b)
Compares the value
|
BoolValue |
equal(ShortNumber s)
Compares the value
|
BoolValue |
equal(IntNumber n)
Compares the value
|
BoolValue |
equal(LongNumber n)
Compares the value
|
BoolValue |
equal(RealNumber n)
Compares the value
|
BoolValue |
less(o)
Returns the true if the object is less than an argument;
If no appropriate method overloading is found, an argument o is converted to the SByteNumber type when it is possible and compared |
BoolValue |
less(SByteNumber b)
Returns the true if the object is less than an argument;
otherwise returns false |
BoolValue |
less(ShortNumber s)
Returns the true if the object is less than an argument;
otherwise returns false |
BoolValue |
less(IntNumber n)
Returns the true if the object is less than an argument;
otherwise returns false |
BoolValue |
less(LongNumber n)
Returns the true if the object is less than an argument;
otherwise returns false |
BoolValue |
less(RealNumber n)
Returns the true if the object is less than an argument;
otherwise returns false |
|
multiply(o)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the SByteNumber type |
SByteNumber |
multiply(SByteNumber n)
Returns the product
|
ShortNumber |
multiply(ShortNumber n)
Returns the product
|
IntNumber |
multiply(IntNumber n)
Returns the product
|
IntNumber |
multiply(LongNumber n)
Returns the product
|
RealNumber |
multiply(RealNumber n)
Returns the product
|
SByteNumber |
shiftLeft(IntNumber val)
shifts an integer value to the left by a specified number of bits
|
SByteNumber |
shiftRight(IntNumber val)
shifts an integer value to the right by a specified number of bits
|
|
subtract(o)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the SByteNumber type |
SByteNumber |
subtract(SByteNumber n)
Returns the difference
|
ShortNumber |
subtract(ShortNumber n)
Returns the difference
|
IntNumber |
subtract(IntNumber n)
Returns the difference
|
IntNumber |
subtract(LongNumber n)
Returns the difference
|
RealNumber |
subtract(RealNumber n)
Returns the difference
|
String |
toPrintable()
returns the literal presentation
|
public singleton ShortArrayConvertor
| Modifier and Type | Method |
|---|---|
IntNumber |
convert(String sour, IntNumber sourLen, system'ShortNumber[] dest, IntNumber destIndex, IntNumber destLen)
Converts a UTF-8 substring sour from 0 with sourLen length into a UTF-16 array and copies into dest starting at destIndex. destLen defines the maximal possible length
The number of copied words are returned |
public singleton ShortConvertor
| Modifier and Type | Method |
|---|---|
ShortNumber |
convert(o)
|
ShortNumber |
convert(BaseVariable v)
|
ShortNumber |
convert(ByteNumber b)
Converts an argument b to a 16-bit integer if it is possible
Otherwise raises an exception OutOfRangeException |
ShortNumber |
convert(ShortNumber s)
Returns an argument
|
ShortNumber |
convert(IntNumber n)
Converts an argument n to a 16-bit integer if it is possible
Otherwise raises an exception OutOfRangeException |
ShortNumber |
convert(UIntNumber n)
Converts an argument n to a 16-bit integer if it is possible
Otherwise raises an exception OutOfRangeException |
ShortNumber |
convert(LongNumber l)
Converts an argument l to a 16-bit integer if it is possible
Otherwise raises an exception OutOfRangeException |
ShortNumber |
convert(RealNumber r)
Converts an argument r to a 16-bit integer if it is possible
Otherwise raises an exception OutOfRangeException |
ShortNumber |
convert(CharValue ch)
Converts an argument ch to a 16-bit integer if it is possible
Otherwise raises an exception OutOfRangeException |
ShortNumber |
convert(String s, IntNumber radix)
Converts a string s to a 16-bit integer value with a specified base value radix if it is possible
Otherwise raises an exception OutOfRangeException |
ShortNumber |
convert(WideString s, IntNumber radix)
Converts a string s to a 16-bit integer value with a specified base value radix if it is possible
Otherwise raises an exception OutOfRangeException |
public class ShortNumber
a signed 16 bit integer
| Modifier and Type | Field |
|---|---|
|
_value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
ShortNumber |
constructor()
creates the object with a default value (0)
|
ShortNumber |
constructor(ShortNumber s)
creates the object with specified value
|
ShortNumber |
constructor(ByteNumber b)
creates the object with specified value
|
ShortNumber |
constructor(SByteNumber b)
creates the object with specified value
|
ShortNumber |
constructor(IntNumber n)
Converts from an integer
|
| Modifier and Type | Static Property |
|---|---|
get ShortNumber |
Default()
Returns the value value (0)
|
get ShortNumber |
MaxValue()
Returns the maxial value (32767)
|
get ShortNumber |
MinValue()
Returns the minimal value (-32768)
|
| Modifier and Type | Property |
|---|---|
get ShortNumber |
BInverted()
bitwise inversion
|
get ShortNumber |
Negative()
Returns negated value
|
| Modifier and Type | Conversion Method |
|---|---|
ByteNumber |
cast()
Returns the byte value
|
IntNumber |
cast()
Returns the integer value
|
UIntNumber |
cast()
Returns the unsigned integer value
|
LongNumber |
cast()
Returns the long integer value
|
RealNumber |
cast()
Returns the real number value
|
| Modifier and Type | Method |
|---|---|
|
add(o)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the ShortNumber type |
ShortNumber |
add(ShortNumber n)
returns the sum
|
ShortNumber |
add(ByteNumber n)
returns the sum
|
IntNumber |
add(IntNumber n)
returns the sum
|
LongNumber |
add(LongNumber n)
returns the sum
|
RealNumber |
add(RealNumber n)
returns the sum
|
|
band(n)
Returns the result of bitwise AND operation;
If no appropriate method overloading is found, an argument o is converted to the ShortNumber type |
ShortNumber |
band(ShortNumber n)
Returns the result of bitwise AND operation
|
ShortNumber |
band(ByteNumber n)
Returns the result of bitwise AND operation
|
IntNumber |
band(IntNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
band(LongNumber n)
Returns the result of bitwise AND operation
|
|
bor(n)
Returns the result of bitwise OR operation;
If no appropriate method overloading is found, an argument o is converted to the ShortNumber type |
ShortNumber |
bor(ShortNumber n)
Returns the result of bitwise OR operation
|
ShortNumber |
bor(ByteNumber n)
Returns the result of bitwise OR operation
|
IntNumber |
bor(IntNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bor(LongNumber n)
Returns the result of bitwise OR operation
|
|
bxor(n)
Returns the result of bitwise XOR operation;
If no appropriate method overloading is found, an argument o is converted to the ShortNumber type |
ShortNumber |
bxor(ShortNumber n)
Returns the result of bitwise XOR operation
|
ShortNumber |
bxor(ByteNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
bxor(IntNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
bxor(LongNumber n)
Returns the result of bitwise XOR operation
|
ShortNumber |
clone()
clones the value
|
|
divide(o)
Returns the result of integer division;
If no appropriate method overloading is found, an argument o is converted to the ShortNumber type |
ShortNumber |
divide(ShortNumber n)
returns the result of integer division
|
ShortNumber |
divide(ByteNumber n)
returns the result of integer division
|
IntNumber |
divide(IntNumber n)
returns the result of integer division
|
LongNumber |
divide(LongNumber n)
returns the result of integer division
|
RealNumber |
divide(RealNumber n)
returns the result of integer division
|
BoolValue |
equal(o)
Compares the value;
If no appropriate method overloading is found, an argument o is converted to the ShortNumber type when it is possible and compared; otherwise returns false |
BoolValue |
equal(ShortNumber b)
compares the value
|
BoolValue |
equal(ByteNumber b)
compares the value
|
BoolValue |
equal(IntNumber n)
compares the value
|
BoolValue |
equal(LongNumber n)
compares the value
|
BoolValue |
equal(RealNumber n)
compares the value
|
BoolValue |
less(o)
Returns the true if the object is less than an argument;
If no appropriate method overloading is found, an argument o is converted to the ShortNumber type when it is possible and compared |
BoolValue |
less(ShortNumber b)
compares the value
|
BoolValue |
less(ByteNumber b)
compares the value
|
BoolValue |
less(IntNumber n)
compares the value
|
BoolValue |
less(LongNumber n)
compares the value
|
BoolValue |
less(RealNumber n)
compares the value
|
|
multiply(o)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the ShortNumber type |
ShortNumber |
multiply(ShortNumber n)
returns the product
|
ShortNumber |
multiply(ByteNumber n)
returns the product
|
IntNumber |
multiply(IntNumber n)
returns the product
|
LongNumber |
multiply(LongNumber n)
returns the product
|
RealNumber |
multiply(RealNumber n)
returns the product
|
ShortNumber |
shiftLeft(IntNumber val)
shifts an integer value to the left by a specified number of bits
|
ShortNumber |
shiftRight(IntNumber val)
shifts an integer value to the right by a specified number of bits
|
|
subtract(o)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the ShortNumber type |
ShortNumber |
subtract(ShortNumber n)
returns the difference
|
ShortNumber |
subtract(ByteNumber n)
returns the difference
|
IntNumber |
subtract(IntNumber n)
returns the difference
|
LongNumber |
subtract(LongNumber n)
returns the difference
|
RealNumber |
subtract(RealNumber n)
returns the difference
|
String |
toPrintable()
returns the literal presentation
|
| Modifier and Type | Extension Method |
|---|---|
get property ShortNumber |
Absolute()
Returns the absolute value of the short integer
|
get property IntNumber |
Hashcode()
Returns the hash code of the short integer
|
get property ByteNumber |
High()
Returns a high byte of the short integer
|
BoolValue |
isEven()
Returns true if the short integer is even
|
BoolValue |
isNegative()
Returns true if the short integer is negative
|
BoolValue |
isNonnegative()
Returns true if the short integer is not negative
|
BoolValue |
isOdd()
Returns true if the short integer is odd
|
BoolValue |
isPositive()
Returns true if the short integer is positive
|
BoolValue |
isZero()
Returns true if the short integer is zero
|
get property ByteNumber |
Low()
Returns a low byte of the short integer
|
ShortNumber |
mod(Object operand)
returns the remainder of an integer division
|
ShortNumber |
power(IntNumber y)
returns the power of the short integer raised to y
|
ShortNumber |
sqr()
returns the power of the short integer raised to 2
|
ShortNumber |
sqrt()
returns the square root of the short integer
|
public class SMALL_RECT
| Modifier and Type | Field |
|---|---|
ShortNumber |
_left
|
ShortNumber |
_top
|
ShortNumber |
_right
|
ShortNumber |
_bottom
|
| Modifier and Type | Property |
|---|---|
get ShortNumber |
Bottom()
|
get ShortNumber |
Left()
|
get ShortNumber |
Right()
|
get ShortNumber |
Top()
|
| Modifier and Type | Method |
|---|---|
|
write(SMALL_RECT r)
|
public class StackOverflowException
Stack overflown exception
| Modifier and Type | Constructor / Static Method |
|---|---|
StackOverflowException |
new()
Creates an exception with a default message
|
StackOverflowException |
new(String message)
Creates the exception with the specified message
|
| Modifier and Type | Method |
|---|---|
String |
toPrintable()
|
public class StartUpEvents
Application events
| Modifier and Type | Field |
|---|---|
EventHandler<system'Func> |
OnStop
|
EventHandler<system'Func1> |
OnError
|
| Modifier and Type | Constructor / Static Method |
|---|---|
internal StartUpEvents |
new()
|
| Modifier and Type | Method |
|---|---|
internal |
handlingError(e)
|
internal |
stopping()
|
public class String
A UTF-8 literal value
| Modifier and Type | Field |
|---|---|
|
array
|
| Modifier and Type | Constructor / Static Method |
|---|---|
String |
allocate(IntNumber size)
creates a string with specific size
|
String |
copy(IntNumber size, String s)
Creates the copy of a substring of s with specified length size starting at 0
|
String |
copy(String s)
Creates the literal string copy of s
|
String |
copy(IntNumber index, IntNumber length, system'CharValue[] charArray)
Creates the copy of a sub array charArray starting from index and with the specified length
|
String |
fill(IntNumber size, CharValue ch)
Creates the literal string with specified length size fills with character ch
|
internal String |
fromByteArray(IntNumber index, IntNumber size, system'ByteNumber[] buffer)
|
String |
interpolate constructor(params Object[] args)
|
| Modifier and Type | Constructor / Static Method |
|---|---|
|
dispatch()
|
| Modifier and Type | Static Property |
|---|---|
get String |
MinValue()
Returns an empty string
|
| Modifier and Type | Property |
|---|---|
get IntNumber |
Length()
Returns the string length
|
| Modifier and Type | Conversion Method |
|---|---|
WideString |
cast()
Converts to the UTF-16 string
|
Enumerable<system'CharValue> |
cast()
Creates an enumerable wrapper
|
| Modifier and Type | Method |
|---|---|
String |
add(o)
|
String |
add(BaseVariable v)
|
String |
add(String subs)
Concatenate the values
|
CharValue |
at(IntNumber index)
Returns a character at the specified position index
|
ByteNumber |
at(IntNumber index)
Returns a byte at the specified position index
|
String |
clone()
Clones the value
|
String |
delete(IntNumber index, IntNumber length)
Deletes the substring starting from index and with the specified length from the object and returns the new one
|
Enumerator<system'CharValue> |
enumerator()
Returns the string enumerator
|
BoolValue |
equal(o)
Tries to convert the argument o to UTF-8 string and compare with it. If the conversion is not possible it returns false
|
BoolValue |
equal(String s)
Returns true if the string equals to s; otherwise returns false
|
BoolValue |
equal(WideString s)
Returns true if the string equals to s; otherwise returns false
Note the string will be converted to UTF-16 string before comparison |
BoolValue |
equal(CharValue ch)
Returns true if the string equals to ch; otherwise returns false
Note the character will be converted to UTF-8 string before comparison |
Indexer<system'CharValue> |
indexer()
Returns the string indexer
|
IntNumber |
indexOf(IntNumber index, String literal)
Saves the index of the first occurence of the specified string literal starting from index into an output parameter.
If the substring is not found. returns -1 |
IntNumber |
indexOf(IntNumber index, CharValue ch)
Returns the index of the first occurence of the specified character ch starting from index.
If the substring is not found. returns -1 |
String |
insert(IntNumber index, String s)
Inserts the substring into and returns the new one
|
String |
insert(IntNumber index, CharValue ch)
Inserts the character ch at the specified index and returns the new one
|
BoolValue |
less(o)
Tries to convert the argument o to UTF-8 string and check if the object is less then it. If the conversion is not possible it returns false
|
BoolValue |
less(String s)
Returns true if the string is less then s; otherwise returns false
|
BoolValue |
less(WideString s)
Returns true if the string less then s; otherwise returns false
Note the string will be converted to UTF-16 string before comparison |
BoolValue |
less(CharValue ch)
Returns true if the string is less then ch; otherwise returns false
Note the character will be converted to UTF-8 string before comparison |
IntNumber |
save(IntNumber index, IntNumber length, system'CharValue[] buffer, IntNumber destIndex)
Copies the characters from the string starting from index and with the specified length and copies to buffer starting from destIndex
|
internal |
saveToByteArray(IntNumber index, system'ByteNumber[] buffer, IntNumber length)
|
String |
Substring(IntNumber index, IntNumber length)
Returns the substring from index and with the specified length
|
String |
toPrintable()
Returns itself
|
| Modifier and Type | Extension Method |
|---|---|
BoolValue |
containing(String s)
Returns true if the string contains the specified string s
|
BoolValue |
endingWith(String s)
Returns true if the string ends with the specified string s
|
get property IntNumber |
Hashcode()
Returns the hash code of the string
|
IntNumber |
indexOf(String s)
Returns the index of the first occurence of the specified string s
If the substring is not found. returns -1 |
IntNumber |
indexOf(CharValue ch)
Returns the index of the first occurence of the specified character ch.
If the substring is not found. returns -1 |
BoolValue |
isEmpty()
Returns true if the string has 0 length
|
BoolValue |
isNonempty()
Returns true if the string has a length greater then 0
|
String |
padLeft(IntNumber length)
Returns a new string of a specified length in which the beginning of the current string is padded with spaces
|
String |
padLeft(CharValue ch, IntNumber length)
Returns a new string of a specified length in which the beginning of the current string is padded with the provided character ch
|
String |
padRight(IntNumber length)
Returns a new string of a specified length in which the ending of the current string is padded with spaces
|
String |
padRight(CharValue ch, IntNumber length)
Returns a new string of a specified length in which the ending of the current string is padded with the provided character ch
|
String |
replace(String replacee, String replacer)
Replaces all the occurrences of replacee with replacer and returns a new string
|
String |
replaceFirst(String replacee, String replacer)
Replaces the first occurrence of replacee with replacer and returns a new string
|
BoolValue |
startingWith(String s)
Returns true if the string starts with the specified string s
|
String |
Substring(IntNumber index)
Returns a substring starting from index till the end
|
String |
trim(CharValue ch)
Removes all the leading and tailing occurrences of a specified character ch from the string
|
String |
trim()
Removes all the leading and tailing occurrences of a space from the string
|
String |
trimLeft(CharValue ch)
Removes all the leading occurrences of a specified character ch from the string
|
String |
trimLeft()
Removes all the leading occurrences of a space from the string
|
String |
trimRight(CharValue ch)
Removes all the tailing occurrences of a specified character ch from the string
|
String |
trimRight()
Removes all the tailing occurrences of a space from the string
|
public singleton StringConvertor
| Modifier and Type | Method |
|---|---|
String |
convert(o)
Returns the string representation
|
String |
convert(ByteNumber b, IntNumber radix)
Formats a number b with the specified base radix as a literal presentation
|
String |
convert(IntNumber value, IntNumber radix)
Formats a number value with the specified base radix as a literal presentation
|
String |
convert(IntNumber value)
Formats a number b with 10 base as a literal presentation
|
String |
convert(LongNumber value, IntNumber radix)
Formats a number value with the specified base radix as a literal presentation
|
String |
convert(UIntNumber value, IntNumber radix)
Formats a number value with the specified base radix as a literal presentation
|
String |
convert(ShortNumber value, IntNumber radix)
Formats a number value with the specified base radix as a literal presentation
|
String |
convert(RealNumber value)
Formats a number value as a literal presentation
|
String |
convert(CharValue ch)
Converts a UTF32 value ch as a string
|
String |
convert(BaseVariable v)
|
String |
convert(BaseVariable v, IntNumber radix)
|
String |
convert(WideString w)
Converts UTF-16 string to UTF-8 one
|
String |
convert(String s)
Returns an argument
|
String |
convertUnsigned(LongNumber value, IntNumber radix)
Formats a 64-bit integer value as unsigned one the specified base radix as a literal presentation
|
public class Symbol
A dynamic symbol reference
| Modifier and Type | Field |
|---|---|
|
pointer
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Symbol |
constructor(String name)
Loads a symbol reference
If the symbol cannot be loaded raises SymbolLoaderException |
Symbol |
constructor(UnsafePointer ptr)
Copies the reference from a pointer
Unsafe operation |
| Modifier and Type | Constructor / Static Method |
|---|---|
Symbol |
tryLoad(String ns, String name)
Tries to load a symbol reference
If the symbol cannot be loaded returns null-reference |
| Modifier and Type | Static Property |
|---|---|
get Symbol |
Default()
Returns null reference
|
| Modifier and Type | Method |
|---|---|
|
dispatch()
|
BoolValue |
equal(Symbol s)
Returns true if the object and s refer both the same symbol
Otherwise returns false |
BoolValue |
notequal(Symbol s)
Returns false if the object and s refer both the same symbol
Otherwise returns true |
public class SymbolLoaderException
Symbol cannot be loaded exception
| Modifier and Type | Constructor / Static Method |
|---|---|
SymbolLoaderException |
new(String symbolName)
Creates an exception with the specified symbolName
|
public class TypeLoaderException
Type cannot be loaded exception
| Modifier and Type | Constructor / Static Method |
|---|---|
TypeLoaderException |
new(String className)
Creates the exception with the specified className
|
public singleton UIntConvertor
| Modifier and Type | Method |
|---|---|
UIntNumber |
convert(o)
Tries to convert an argument to a unsigned 32-bit integer
|
UIntNumber |
convert(UIntNumber n)
Returns an argument
|
UIntNumber |
convert(IntNumber n)
Converts an argument n to unsigned 32-bit integer value
|
UIntNumber |
convert(ByteNumber b)
Converts an argument b to unsigned 32-bit integer value
|
UIntNumber |
convert(ShortNumber s)
Converts an argument s to unsigned 32-bit integer value
|
UIntNumber |
convert(LongNumber l)
Converts an argument l to unsigned 32-bit integer value if it is possible
Otherwise raises an exception OutOfRangeException |
UIntNumber |
convert(String s)
Converts a string s to a 32-bit unsigned integer value in a decimal representation if it is possible
Otherwise raises an exception OutOfRangeException |
UIntNumber |
convert(String s, IntNumber radix)
Converts a string s to a 32-bit unsigned integer value with a specified base value radix if it is possible
Otherwise raises an exception OutOfRangeException |
UIntNumber |
convert(WideString s, IntNumber radix)
Converts a string s to a 32-bit unsigned integer value with a specified base value radix if it is possible
Otherwise raises an exception OutOfRangeException |
public class UIntNumber
A unsigned 32 bit integer
| Modifier and Type | Field |
|---|---|
|
_value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
UIntNumber |
#constructor(String s)
|
UIntNumber |
#constructor(String s)
|
UIntNumber |
constructor(ByteNumber b)
converts the argument to UIntNumber
|
UIntNumber |
constructor(ShortNumber s)
converts the argument to UIntNumber
|
UIntNumber |
constructor(IntNumber n)
converts the argument to UIntNumber
|
UIntNumber |
constructor(UIntNumber n)
Creates the object with specified value
|
UIntNumber |
constructor()
Returns the default value
|
| Modifier and Type | Static Property |
|---|---|
get UIntNumber |
Default()
Returns the default value (0)
|
get UIntNumber |
MaxValue()
Creates the object with the maximal value
|
get UIntNumber |
MinValue()
Creates the object with the minimal value
|
| Modifier and Type | Property |
|---|---|
get UIntNumber |
BInverted()
Bitwise inversion
|
| Modifier and Type | Conversion Method |
|---|---|
ShortNumber |
cast()
Returns the value as a short integer
|
ByteNumber |
cast()
Returns the byte value
|
IntNumber |
cast()
Returns the signed integer
|
LongNumber |
cast()
Returns the long integer
|
RealNumber |
cast()
Returns the real number
|
| Modifier and Type | Method |
|---|---|
|
add(n)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the UIntNumber type |
UIntNumber |
add(BaseVariable v)
Returns the sum of the object and a variable value
|
UIntNumber |
add(UIntNumber n)
Returns the sum
|
IntNumber |
add(IntNumber n)
Returns the sum
|
IntNumber |
add(ByteNumber n)
Returns the sum
|
IntNumber |
add(ShortNumber n)
Returns the sum
|
LongNumber |
add(LongNumber n)
Returns the sum as a long integer
|
RealNumber |
add(RealNumber n)
Returns the sum as a real number
|
|
band(n)
Returns the result of bitwise AND operation;
If no appropriate method overloading is found, an argument o is converted to the UIntNumber type |
UIntNumber |
band(UIntNumber n)
Returns the result of bitwise AND operation
|
IntNumber |
band(IntNumber n)
Returns the result of bitwise AND operation
|
UIntNumber |
band(ShortNumber n)
Returns the result of bitwise AND operation
|
UIntNumber |
band(ByteNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
band(LongNumber n)
Returns the result of bitwise AND operation
|
|
bor(n)
Returns the result of bitwise OR operation;
If no appropriate method overloading is found, an argument o is converted to the UIntNumber type |
UIntNumber |
bor(UIntNumber n)
Returns the result of bitwise OR operation
|
IntNumber |
bor(IntNumber n)
Returns the result of bitwise OR operation
|
UIntNumber |
bor(ShortNumber n)
Returns the result of bitwise OR operation
|
UIntNumber |
bor(ByteNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bor(LongNumber n)
Returns the result of bitwise OR operation
|
|
bxor(n)
Returns the result of bitwise XOR operation;
If no appropriate method overloading is found, an argument o is converted to the UIntNumber type |
UIntNumber |
bxor(UIntNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
bxor(IntNumber n)
Returns the result of bitwise XOR operation
|
UIntNumber |
bxor(ShortNumber n)
Returns the result of bitwise XOR operation
|
UIntNumber |
bxor(ByteNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
bxor(LongNumber n)
Returns the result of bitwise XOR operation
|
UIntNumber |
clone()
Returns the value copy
|
|
divide(n)
Returns the result of integer division;
If no appropriate method overloading is found, an argument o is converted to the UIntNumber type |
UIntNumber |
divide(BaseVariable v)
Returns the result of integer division
|
UIntNumber |
divide(UIntNumber n)
Returns the result of integer division
|
IntNumber |
divide(IntNumber n)
Returns the result of integer division
|
IntNumber |
divide(ByteNumber n)
Returns the result of integer division
|
IntNumber |
divide(ShortNumber n)
Returns the result of integer division
|
LongNumber |
divide(LongNumber n)
Returns the result of integer division as a long integer
|
RealNumber |
divide(RealNumber n)
Returns the result of the division as a real number
|
BoolValue |
equal(o)
Compares the value;
If no appropriate method overloading is found, an argument o is converted to the UIntNumber type when it is possible and compared; otherwise returns false |
BoolValue |
equal(UIntNumber n)
Compares the value
|
BoolValue |
equal(IntNumber n)
Compares the value
|
BoolValue |
equal(ShortNumber n)
Compares the value
|
BoolValue |
equal(ByteNumber n)
Compares the value
|
BoolValue |
equal(LongNumber n)
Compares the value
|
BoolValue |
equal(RealNumber n)
Compares the value
|
BoolValue |
less(n)
Returns the true if the object is less than an argument;
If no appropriate method overloading is found, an argument o is converted to the UIntNumber type when it is possible and compared |
BoolValue |
less(UIntNumber n)
Compares the value
|
BoolValue |
less(IntNumber n)
Compares the value
|
BoolValue |
less(ByteNumber n)
Compares the value
|
BoolValue |
less(LongNumber n)
Compares the value
|
BoolValue |
less(RealNumber n)
Compares the value
|
|
multiply(n)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the UIntNumber type |
UIntNumber |
multiply(BaseVariable v)
Returns the product of the object and a variable value
|
UIntNumber |
multiply(UIntNumber n)
Returns the product
|
IntNumber |
multiply(IntNumber n)
Returns the product
|
IntNumber |
multiply(ByteNumber n)
Returns the product
|
IntNumber |
multiply(ShortNumber n)
Returns the product
|
LongNumber |
multiply(LongNumber n)
Returns the product as a long integer
|
RealNumber |
multiply(RealNumber n)
Returns the product as a real number
|
UIntNumber |
shiftLeft(UIntNumber val)
shifts an integer value to the left by a specified number of bits
|
UIntNumber |
shiftLeft(IntNumber val)
shifts an integer value to the left by a specified number of bits
|
UIntNumber |
shiftRight(UIntNumber val)
shifts an integer value to the right by a specified number of bits
|
UIntNumber |
shiftRight(IntNumber val)
shifts an integer value to the right by a specified number of bits
|
|
subtract(n)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the UIntNumber type |
UIntNumber |
subtract(BaseVariable v)
Returns the difference of the object and a variable value
|
UIntNumber |
subtract(UIntNumber n)
Returns the difference
|
IntNumber |
subtract(IntNumber n)
Returns the difference
|
IntNumber |
subtract(ByteNumber n)
Returns the difference
|
IntNumber |
subtract(ShortNumber n)
Returns the difference
|
LongNumber |
subtract(LongNumber n)
Returns the difference as a long integer
|
RealNumber |
subtract(RealNumber n)
Returns the difference as a real number
|
String |
toPrintable()
Returns the literal presentation
|
| Modifier and Type | Extension Method |
|---|---|
get property IntNumber |
Hashcode()
Returns the hash code of the unsigned integer
|
BoolValue |
isEven()
Returns true if the integer is even
|
BoolValue |
isOdd()
Returns true if the integer is odd
|
BoolValue |
isZero()
Returns true if the integer is zero
|
UIntNumber |
mod(UIntNumber operand)
returns the remainder of an integer division
|
UIntNumber |
mod(IntNumber operand)
returns the remainder of an integer division
|
UIntNumber |
mod(Object operand)
returns the remainder of an integer division
|
RealNumber |
realDiv(Object n)
returns the result of a real division
|
UIntNumber |
sqr()
returns the power of the unsigned integer raised to 2
|
UIntNumber |
sqrt()
returns the square root of the unsigned integer
|
public singleton ULongConvertor
| Modifier and Type | Method |
|---|---|
LongNumber |
convert(String s, IntNumber radix)
Converts a string s to a 64-bit unsigned integer value with a specified base value radix if it is possible
Otherwise raises an exception OutOfRangeException |
public class UnsafeArray
A unsafe pointer to an array of pointers
| Modifier and Type | Field |
|---|---|
|
_pointer
|
| Modifier and Type | Constructor / Static Method |
|---|---|
UnsafeArray |
constructor()
Creates a null pointer
|
UnsafeArray |
constructor(UnsafePointer ptr)
Creates a copy of weak ptr pointer
|
| Modifier and Type | Method |
|---|---|
UnsafePointer |
at(IntNumber index)
Returns a pointer at the position index
|
public class UnsafePointer
Unsafe weak pointer
| Modifier and Type | Field |
|---|---|
|
_pointer
|
| Modifier and Type | Constructor / Static Method |
|---|---|
UnsafePointer |
constructor()
Creates a null pointer
|
UnsafePointer |
constructor(UnsafePointer ptr)
Creates a copy of ptr
|
UnsafePointer |
constructor(Object obj)
Creates a pointer to obj
It is unsafe operation, because the object reference can be modified by GC routines |
| Modifier and Type | Static Property |
|---|---|
get UnsafePointer |
Default()
Returns a null-pointer
|
| Modifier and Type | Property |
|---|---|
get UnsafePointer |
Value()
Returns a pointer (32 / 64 bit number depending on the platform) referred by the pointer
It is unsafe operation |
set IntNumber |
Value(ref IntNumber arg1)
Returns a 32-bit integer referred by the pointer
It is unsafe operation |
set RealNumber |
Value(ref RealNumber arg1)
Returns a 64-bit float number referred by the pointer
It is unsafe operation |
set LongNumber |
Value(ref LongNumber arg1)
Returns a 64-bit integer referred by the pointer
It is unsafe operation |
set String |
Value(ref String arg1)
Returns a UTF-8 string referred by the pointer
It is unsafe operation |
set WideString |
Value(ref WideString arg1)
Returns a UTF-16 string referred by the pointer
It is unsafe operation |
| Modifier and Type | Conversion Method |
|---|---|
String |
cast()
Returns a UTF-8 string referred by the pointer
It is unsafe operation |
WideString |
cast()
Returns a UTF-16 string referred by the pointer
It is unsafe operation |
IntNumber |
cast()
Returns a 32-bit integer referred by the pointer
It is unsafe operation |
| Modifier and Type | Method |
|---|---|
|
copyTo(system'ByteNumber[] target, IntNumber len)
Copies the buffer referred by the pointer to target byte array with provided length
|
|
copyTo(system'ByteNumber[] target, IntNumber index, IntNumber len)
Copies the buffer referred by the pointer to target byte sub array with provided length starting from index
|
|
copyToUnsafe(Object ptr, IntNumber length)
Copies the buffer referred by the pointer to ptr with provided length
|
LongNumber |
getLongValue()
|
String |
getStringUnsafe()
|
BoolValue |
isUnassigned()
Returns true if it is a null-pointer
Otherwise returns false |
public template UnsafePointer<T1>
A strong-typed unsafe pointer
| Modifier and Type | Field |
|---|---|
|
_pointer
|
| Modifier and Type | Constructor / Static Method |
|---|---|
UnsafePointer<T1> |
constructor()
Creates a null pointer
|
UnsafePointer<T1> |
constructor(UnsafePointer<T1> ptr)
Creates a copy of ptr
|
UnsafePointer<T1> |
constructor(UnsafePointer ptr)
Creates a copy of weak ptr pointer
|
UnsafePointer<T1> |
constructor(T1 obj)
Creates a pointer to obj
It is unsafe operation, because the object reference can be modified by GC routines |
| Modifier and Type | Property |
|---|---|
get T1 |
Value()
Returns an ibstance of T type referred by the pointer
It is unsafe operation |
| Modifier and Type | Method |
|---|---|
|
copyTo(T1 value, IntNumber size)
Copies the buffer referred by the pointer to value with provided length
NotSupportedException raises if T is not a structure |
public singleton UShortConvertor
| Modifier and Type | Method |
|---|---|
UShortNumber |
convert(UShortNumber s)
Returns an argument
|
UShortNumber |
convert(ShortNumber s)
Converts an argument s to a 16-bit unsigned integer if it is possible
Otherwise raises an exception OutOfRangeException |
UShortNumber |
convert(IntNumber n)
Converts an argument n to a 16-bit unsigned integer if it is possible
Otherwise raises an exception OutOfRangeException |
public class UShortNumber
an unsigned 16 bit integer
| Modifier and Type | Field |
|---|---|
|
_value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
UShortNumber |
constructor()
creates the object with a default value (0)
|
UShortNumber |
constructor(UShortNumber s)
creates the object with specified value
|
UShortNumber |
constructor(ShortNumber s)
creates the object with specified value
|
UShortNumber |
constructor(ByteNumber b)
creates the object with specified value
|
UShortNumber |
constructor(IntNumber n)
tries to convert the integer number o to unsigned short number
|
| Modifier and Type | Static Property |
|---|---|
get UShortNumber |
Default()
Returns the default value (0)
|
get UShortNumber |
MaxValue()
Returns the maxial value (65535)
|
get UShortNumber |
MinValue()
Returns the minimal value (0)
|
| Modifier and Type | Property |
|---|---|
get UShortNumber |
BInverted()
bitwise inversion
|
get UShortNumber |
Negative()
Returns negated value
|
| Modifier and Type | Conversion Method |
|---|---|
ByteNumber |
cast()
Returns the byte value
|
ShortNumber |
cast()
Returns the signed short value
|
IntNumber |
cast()
Returns the integer value
|
UIntNumber |
cast()
Returns the unsigned integer value
|
LongNumber |
cast()
Returns the long integer value
|
RealNumber |
cast()
Returns the real number value
|
| Modifier and Type | Method |
|---|---|
|
add(o)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the UShortNumber type |
UShortNumber |
add(UShortNumber n)
returns the sum
|
UShortNumber |
add(ByteNumber n)
returns the sum
|
IntNumber |
add(IntNumber n)
returns the sum
|
LongNumber |
add(LongNumber n)
returns the sum
|
RealNumber |
add(RealNumber n)
returns the sum
|
|
band(n)
Returns the result of bitwise AND operation;
If no appropriate method overloading is found, an argument o is converted to the UShortNumber type |
UShortNumber |
band(UShortNumber n)
Returns the result of bitwise AND operation
|
UShortNumber |
band(ByteNumber n)
Returns the result of bitwise AND operation
|
IntNumber |
band(IntNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
band(LongNumber n)
Returns the result of bitwise AND operation
|
|
bor(n)
Returns the result of bitwise OR operation;
If no appropriate method overloading is found, an argument o is converted to the UShortNumber type |
UShortNumber |
bor(UShortNumber n)
Returns the result of bitwise OR operation
|
UShortNumber |
bor(ByteNumber n)
Returns the result of bitwise OR operation
|
IntNumber |
bor(IntNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bor(LongNumber n)
Returns the result of bitwise OR operation
|
|
bxor(n)
Returns the result of bitwise OR operation;
If no appropriate method overloading is found, an argument o is converted to the UShortNumber type |
UShortNumber |
bxor(UShortNumber n)
Returns the result of bitwise XOR operation
|
UShortNumber |
bxor(ByteNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
bxor(IntNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
bxor(LongNumber n)
Returns the result of bitwise XOR operation
|
UShortNumber |
clone()
clones the value
|
|
divide(o)
Returns the result of integer division;
If no appropriate method overloading is found, an argument o is converted to the UShortNumber type |
UShortNumber |
divide(UShortNumber n)
returns the result of integer division
|
UShortNumber |
divide(ByteNumber n)
returns the result of integer division
|
IntNumber |
divide(IntNumber n)
returns the result of integer division
|
LongNumber |
divide(LongNumber n)
returns the result of integer division
|
RealNumber |
divide(RealNumber n)
returns the result of integer division
|
BoolValue |
equal(o)
Compares the value;
If no appropriate method overloading is found, an argument o is converted to the UShortNumber type when it is possible and compared; otherwise returns false |
BoolValue |
equal(UShortNumber b)
compares the value
|
BoolValue |
equal(ByteNumber b)
compares the value
|
BoolValue |
equal(IntNumber n)
compares the value
|
BoolValue |
equal(LongNumber n)
compares the value
|
BoolValue |
equal(RealNumber n)
compares the value
|
BoolValue |
less(o)
Returns the true if the object is less than an argument;
If no appropriate method overloading is found, an argument o is converted to the UShortNumber type when it is possible and compared |
BoolValue |
less(UShortNumber b)
compares the value
|
BoolValue |
less(ByteNumber b)
compares the value
|
BoolValue |
less(IntNumber n)
compares the value
|
BoolValue |
less(LongNumber n)
compares the value
|
BoolValue |
less(RealNumber n)
compares the value
|
|
multiply(o)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the UShortNumber type |
UShortNumber |
multiply(UShortNumber n)
returns the product
|
UShortNumber |
multiply(ByteNumber n)
returns the product
|
IntNumber |
multiply(IntNumber n)
returns the product
|
LongNumber |
multiply(LongNumber n)
returns the product
|
RealNumber |
multiply(RealNumber n)
returns the product
|
UShortNumber |
shiftLeft(IntNumber val)
shifts an integer value to the left by a specified number of bits
|
UShortNumber |
shiftRight(IntNumber val)
shifts an integer value to the right by a specified number of bits
|
|
subtract(o)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the UShortNumber type |
UShortNumber |
subtract(UShortNumber n)
returns the difference
|
UShortNumber |
subtract(ByteNumber n)
returns the difference
|
IntNumber |
subtract(IntNumber n)
returns the difference
|
LongNumber |
subtract(LongNumber n)
returns the difference
|
RealNumber |
subtract(RealNumber n)
returns the difference
|
String |
toPrintable()
returns the literal presentation
|
public class Variable
A generic variable.
Extends an assigned value with compound operators : append (+=), reduce (-=), multiplyBy (*=) and divideBy (/=)
| Modifier and Type | Field |
|---|---|
Object |
value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Variable |
constructor(value)
Creates the variable
|
Variable |
constructor()
Creates the empty variable
|
| Modifier and Type | Method |
|---|---|
|
append(val)
Implements compound operator +=
If the value is nil, assigns the operand to it, otherwise sum them and assign the result to the variable |
|
divideBy(val)
Implements compound operator /=
If the value is nil, raises an exception, otherwise divide the variable value by val and assign the result to the variable |
|
multiplyBy(val)
Implements compound operator *=
If the value is nil, raises an exception, otherwise multiply the variable value by val and assign the result to the variable |
|
reduce(val)
Implements compound operator -=
If the value is nil, assigns the operand to it, otherwise subtract val from the variable value and assign the result to the variable |
public class Variant
A basic type variant class
| Modifier and Type | Field |
|---|---|
Object |
value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Variant |
constructor(object)
Creates a variant object and assigns it with object
|
| Modifier and Type | Conversion Method |
|---|---|
ByteNumber |
cast()
Tries to convert the value to a byte number
|
ShortNumber |
cast()
Tries to convert the value to a short integer number
|
CharValue |
cast()
Tries to convert the value to a character
|
IntNumber |
cast()
Tries to convert the literal value to the integer number
|
LongNumber |
cast()
Tries to convert the literal value to the long integer number
|
RealNumber |
cast()
Tries to convert the literal value to the real number
|
String |
cast()
Returns a literal value
|
WideString |
cast()
Returns a wide literal value
|
| Modifier and Type | Method |
|---|---|
|
add(p)
Tries to convert p argument to the variant type and returns the sum
|
|
divide(p)
Tries to convert p argument to the variant type and returns the division result
|
BoolValue |
equal(p)
Tries to convert p argument to the variant type and check if they are equals
|
|
multiply(p)
Tries to convert p argument to the variant type and returns the product
|
|
saveTo(target)
Tries to convert target value to the type compatible with the variant value, reassigns it and returns the argument.
Target must support Value property |
|
subtract(p)
Tries to convert p argument to the variant type and returns the difference
|
String |
toPrintable()
Redirects to the assigned object
|
public singleton WideConvertor
| Modifier and Type | Method |
|---|---|
WideString |
convert(o)
Returns the string representation
|
WideString |
convert(CharValue ch)
Converts a UTF32 value ch as a string
|
WideString |
convert(ByteNumber b, IntNumber radix)
Formats a number b with the specified base radix as a literal presentation
|
WideString |
convert(IntNumber value, IntNumber radix)
Formats a number value with the specified base radix as a literal presentation
|
WideString |
convert(IntNumber value)
Formats a number b with 10 base as a literal presentation
|
WideString |
convert(LongNumber value, IntNumber radix)
Formats a number value with the specified base radix as a literal presentation
|
WideString |
convert(UIntNumber value, IntNumber radix)
Formats a number value with the specified base radix as a literal presentation
|
WideString |
convert(ShortNumber value, IntNumber radix)
Formats a number value with the specified base radix as a literal presentation
|
WideString |
convert(RealNumber value)
Formats a number value with the specified base radix as a literal presentation
|
WideString |
convert(BaseVariable v)
|
WideString |
convert(BaseVariable v, IntNumber radix)
|
String |
convertUnsigned(LongNumber value, IntNumber radix)
Formats a 64-bit integer value as unsigned one the specified base radix as a literal presentation
|
public class WideString
A UTF-16 literal value
| Modifier and Type | Field |
|---|---|
|
array
|
| Modifier and Type | Constructor / Static Method |
|---|---|
WideString |
allocate(IntNumber size)
creates a string with specific size
|
WideString |
copy(IntNumber size, WideString s)
Creates the copy of a substring of s with specified length size starting at 0
|
WideString |
copy(WideString s)
Creates the literal string copy of s
|
WideString |
copy(IntNumber index, IntNumber length, system'CharValue[] charArray)
Creates the copy of a sub array charArray starting from index and with the specified length
|
WideString |
fill(IntNumber size, CharValue ch)
Creates the literal string with specified length size fills with character ch
|
internal WideString |
fromShortArray(IntNumber index, IntNumber size, system'ShortNumber[] buffer)
|
| Modifier and Type | Static Property |
|---|---|
get WideString |
MinValue()
Returns an empty string
|
| Modifier and Type | Property |
|---|---|
get IntNumber |
Length()
Returns the string length
|
| Modifier and Type | Conversion Method |
|---|---|
String |
cast()
Converts to UTF-8 string
|
Enumerable<system'CharValue> |
cast()
Creates an enumerable wrapper
|
| Modifier and Type | Method |
|---|---|
WideString |
add(o)
|
WideString |
add(BaseVariable v)
|
WideString |
add(WideString subs)
Concatinates the values
|
CharValue |
at(IntNumber index)
Returns a character at the specified position index
|
ShortNumber |
at(IntNumber index)
Returns a word at the specified position index
|
WideString |
clone()
Clones the value
|
WideString |
delete(IntNumber index, IntNumber length)
Deletes the substring starting from index and with the specified length from the object and returns the new one
|
Enumerator<system'CharValue> |
enumerator()
Returns the string enumerator
|
BoolValue |
equal(o)
Tries to convert the argument o to UTF-16 string and compare with it. If the conversion is not possible it returns false
|
BoolValue |
equal(WideString s)
Returns true if the string equals to s; otherwise returns false
|
BoolValue |
equal(CharValue ch)
Returns true if the string equals to ch; otherwise returns false
Note the character will be converted to UTF-16 string before comparison |
Indexer<system'CharValue> |
indexer()
Returns the string indexer
|
IntNumber |
indexOf(IntNumber index, WideString literal)
Saves the index of the first occurence of the specified substring into an output parameter.
If the substring is not found. returns -1 |
IntNumber |
indexOf(IntNumber index, CharValue ch)
Saves the index of the first occurence of the specified character ch starting from index into an output parameter.
If the substring is not found. returns -1 |
WideString |
insert(IntNumber index, WideString s)
Inserts the substring into and returns the new one
|
WideString |
insert(IntNumber index, CharValue ch)
Inserts the character ch at the specified index and returns the new one
|
BoolValue |
less(o)
Tries to convert the argument o to UTF-16 string and check if the object is less then it. If the conversion is not possible it returns false
|
BoolValue |
less(WideString s)
Returns true if the string is less then s; otherwise returns false
|
BoolValue |
less(CharValue ch)
Returns true if the string is less then ch; otherwise returns false
Note the character will be converted to UTF-16 string before comparison |
IntNumber |
save(IntNumber index, IntNumber length, system'CharValue[] buffer, IntNumber destIndex)
Copies the characters from the string starting from index and with the specified length and copies to buffer starting from destIndex
|
internal |
saveToShortArray(IntNumber index, system'ShortNumber[] buffer, IntNumber length, IntNumber outputIndex)
|
WideString |
Substring(IntNumber index, IntNumber length)
Returns the substring from index and with the specified length
|
String |
toPrintable()
Returns UTF-8 copy of the string
|
| Modifier and Type | Extension Method |
|---|---|
BoolValue |
containing(WideString s)
Returns true if the string contains the specified string s
|
BoolValue |
endingWith(WideString s)
Returns true if the string ends with the specified string s
|
get property IntNumber |
Hashcode()
Returns the hash code of the string
|
IntNumber |
indexOf(WideString s)
Returns the index of the first occurence of the specified string s
If the substring is not found. returns -1 |
IntNumber |
indexOf(CharValue ch)
Returns the index of the first occurence of the specified character ch.
If the substring is not found. returns -1 |
BoolValue |
isEmpty()
Returns true if the string has 0 length
|
BoolValue |
isNonempty()
Returns true if the string has a length greater then 0
|
WideString |
padLeft(IntNumber length)
Returns a new string of a specified length in which the beginning of the current string is padded with spaces
|
WideString |
padLeft(CharValue ch, IntNumber length)
Returns a new string of a specified length in which the beginning of the current string is padded with the provided character ch
|
WideString |
padRight(IntNumber length)
Returns a new string of a specified length in which the ending of the current string is padded with spaces
|
WideString |
padRight(CharValue ch, IntNumber length)
Returns a new string of a specified length in which the ending of the current string is padded with the provided character ch
|
WideString |
replace(WideString replacee, WideString replacer)
Replaces all the occurrences of replacee with replacer and returns a new string
|
WideString |
replaceFirst(WideString replacee, WideString replacer)
Replaces the first occurrence of replacee with replacer and returns a new string
|
BoolValue |
startingWith(WideString s)
Returns true if the string starts with the specified string s
|
WideString |
Substring(IntNumber index)
Returns a substring starting from index till the end
|
WideString |
trim(CharValue ch)
Removes all the leading and tailing occurrences of a specified character ch from the string
|
WideString |
trim()
Removes all the leading and tailing occurrences of a space from the string
|
WideString |
trimLeft(CharValue ch)
Removes all the leading occurrences of a specified character ch from the string
|
WideString |
trimLeft()
Removes all the leading occurrences of a space from the string
|
WideString |
trimRight(CharValue ch)
Removes all the tailing occurrences of a specified character ch from the string
|
WideString |
trimRight()
Removes all the tailing occurrences of a space from the string
|
An array of program command line arguments
| Modifier and Type | Name |
public |
CommandLine
An array of program command line arguments
|
|---|
A console symbol
Obsolete. Please use Console
| Modifier and Type | Name |
public ConsoleHelperImpl |
console
A console symbol
Obsolete. Please use Console |
|---|
Empty string constant
| Modifier and Type | Name |
public String |
EmptyString
Empty string constant
|
|---|
obsolete : Empty string constant
Please use EmptyString
| Modifier and Type | Name |
public String |
emptyString
obsolete : Empty string constant
Please use EmptyString |
|---|
Empty string constant
| Modifier and Type | Name |
public WideString |
EmptyWideString
Empty string constant
|
|---|
obsolete : Empty string constant
Please use EmptyWideString
| Modifier and Type | Name |
public WideString |
emptyWideString
obsolete : Empty string constant
Please use EmptyWideString |
|---|
false boolean value
| Modifier and Type | Name |
public BoolValue#false |
false
false boolean value
|
|---|
New line characters
| Modifier and Type | Name |
public String |
NewLineConstant
New line characters
|
|---|
obsolete : A nil value
Please use NilValue
| Modifier and Type | Name |
public |
nilValue
obsolete : A nil value
Please use NilValue |
|---|
true boolean value
| Modifier and Type | Name |
public BoolValue#true |
true
true boolean value
|
|---|