public class AbortException
An abort exception
| Modifier and Type | Constructor / Static Method |
|---|---|
AbortException |
new()
|
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 |
|---|---|
Indexer |
indexer()
Returns the array indexer
|
|
add(Array a)
Concatinates the arrays
|
|
setAt(IntNumber n, Object o)
Assigns item to the element at the position n
|
Object |
at(IntNumber n)
Returns an element at the position n
|
Enumerator |
enumerator()
Returns the array enumerator
|
Array |
clone()
Creates a shallow copy of the array
|
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 |
|---|---|
Indexer<T1> |
indexer()
Creates an array indexer
|
|
at(n)
|
|
setAt(n, item)
|
Enumerator<T1> |
enumerator()
Creates an array enumerator
|
T1 |
at(IntNumber n)
Returns an element at the position n
If an index is out of range, it raises InvalidArgumentException exception. |
|
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. |
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
|
T1[] |
clone()
Returns the shallow copy of the array
|
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 |
|---|---|
BoolValue |
next()
Goes to the next enumeration member and returns true if it is not the last member
|
|
reset()
Resets the enumerator
|
|
enumerable()
returns the enumerating array
|
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 |
Value()
Returns the indexed element
|
set |
Value(o)
Set the element at the current index
|
get IntNumber |
Index()
Index property
|
set |
Index(IntNumber val)
Index property
|
get IntNumber |
Length()
Returns the length of the indexed array
|
| 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 |
|---|---|
BoolValue |
equal(o)
Redirects the message to object field
|
String |
toPrintable()
Redirects the message to object field
|
|
dispatch()
Redirects an income 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 |
|---|---|
|
dispatch()
|
abstract |
function()
An expression code
Must be overridden |
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 |
abstract |
subtract(o)
Subtracts the value;
should be overridden |
abstract |
multiply(o)
Multiplies by the value;
should be overridden |
abstract |
divide(o)
Divides by the value;
should be overridden |
|
add(BaseVariable var)
Adds a variable value of var argument
|
|
subtract(BaseVariable var)
Subtracts a variable value of var argument
|
|
multiply(BaseVariable var)
Multiplies a variable value of var argument
|
|
divide(BaseVariable var)
Divides by a variable value of var argument
|
abstract public class BaseValue
a base value
| Modifier and Type | Method |
|---|---|
abstract BoolValue |
less(o)
Returns true if the object value is less than o; otherwise, false;
should be overridden |
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 |
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 |
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 |
equal(BaseVariable var)
Returns true if a value of a variable var is equal to the object value; otherwise, false
|
BoolValue |
less(BaseVariable var)
Returns true if the object value is less than a value of a variable var ; otherwise, false
|
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
|
|
setAt(IntNumber index, BoolValue value)
Set a boolean value at the specified index position
|
Enumerator<system'BoolValue> |
enumerator()
Creates a boolean enumerator
|
Indexer<system'BoolValue> |
indexer()
Creates a boolean indexer
|
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 |
|---|---|
|
write(IntNumber value)
Copies a bit map from value
|
BoolValue |
at(IntNumber index)
Returns a bit at the specified index position
|
|
setAt(IntNumber index, BoolValue value)
Set a boolean value of value to the specified index position
|
Enumerator<system'BoolValue> |
enumerator()
Creates a bit map enumerator
|
Indexer<system'BoolValue> |
indexer()
Creates a bit map indexer
|
abstract public class BoolValue
a common boolean value
| Modifier and Type | Static Property |
|---|---|
get BoolValue |
MinValue()
Returns the default value
|
get BoolValue |
true()
Returns true value
|
get BoolValue |
false()
Returns false value.
|
| Modifier and Type | Property |
|---|---|
get abstract BoolValue |
Inverted()
Inverts the value;
has to be implemented |
| Modifier and Type | Method |
|---|---|
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 |
equal(BoolValue f)
Returns true if an argument f is equal to the current object boolean value;
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 |
and(expr)
Executes logical AND operation;
has to be implemented |
abstract BoolValue |
xor(expr)
Executes logical XOR operation;
has to be implemented |
abstract BoolValue |
clone()
clones the value;
has to be implemented |
public singleton BoolValue#false
| Modifier and Type | Property |
|---|---|
get BoolValue |
Inverted()
Always returns true
|
| Modifier and Type | Method |
|---|---|
String |
toPrintable()
Returns literal representation
|
|
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 |
equal(BoolValue b)
Determines whether the specified object is equal to the current object boolean value
|
BoolValue |
notequal(BoolValue b)
|
BoolValue |
or(expr)
Executes logical OR operation
|
BoolValue |
and(expr)
Executes logical AND operation;
Always return false |
BoolValue |
xor(expr)
Executes logical XOR operation
|
BoolValue |
clone()
|
public singleton BoolValue#true
| Modifier and Type | Property |
|---|---|
get BoolValue |
Inverted()
Always returns false.
|
| Modifier and Type | Method |
|---|---|
String |
toPrintable()
Returns literal representation.
|
|
if(trueAction)
Executes trueAction.
|
|
if(trueAction, elseAction)
Executes trueAction.
|
|
ifnot(trueAction)
Always returns nil.
|
|
iif(Object trueVal, Object falseVal)
Always returns trueVal.
|
BoolValue |
equal(BoolValue b)
Returns true if an argument b is true
|
BoolValue |
notequal(BoolValue b)
|
BoolValue |
or(expr)
Executes logical OR operation;
Always return true |
BoolValue |
and(expr)
executes logical AND operation.
|
BoolValue |
xor(expr)
Executes logical XOR operation.
|
BoolValue |
clone()
|
public singleton ByteArrayConvertor
| Modifier and Type | Method |
|---|---|
IntNumber |
convert(WideString sour, IntNumber sourLen, system'ByteNumber[] dest, IntNumber destIndex, IntNumber destLen)
|
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)
|
ByteNumber |
convert(ShortNumber s)
|
ByteNumber |
convert(CharValue ch)
|
ByteNumber |
convert(IntNumber n)
|
ByteNumber |
convert(UIntNumber n)
|
ByteNumber |
convert(LongNumber n)
|
ByteNumber |
convert(RealNumber r)
|
ByteNumber |
convert(String s, IntNumber radix)
|
ByteNumber |
convert(WideString s, IntNumber radix)
|
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 |
MinValue()
returns the minimal value (0)
|
get ByteNumber |
MaxValue()
Returns the maxial value (255)
|
get ByteNumber |
Default()
returns the default 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 |
|---|---|
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 |
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 |
String |
toPrintable()
returns the literal presentation
|
|
add(o)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the ByteNumber type |
|
subtract(o)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the ByteNumber type |
|
multiply(o)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the ByteNumber type |
|
divide(o)
Returns the result of integer division;
If no appropriate method overloading is found, an argument o is converted to the ByteNumber type |
|
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 |
|
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 |
|
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 |
add(ByteNumber n)
Returns the sum
|
ByteNumber |
subtract(ByteNumber n)
Returns the difference
|
ByteNumber |
multiply(ByteNumber n)
Returns the product
|
ByteNumber |
divide(ByteNumber n)
Returns the result of integer division
|
ShortNumber |
add(ShortNumber n)
Returns the sum
|
ShortNumber |
subtract(ShortNumber n)
Returns the difference
|
ShortNumber |
multiply(ShortNumber n)
Returns the product
|
ShortNumber |
divide(ShortNumber n)
Returns the result of integer division
|
IntNumber |
add(IntNumber n)
Returns the sum
|
IntNumber |
subtract(IntNumber n)
Returns the difference
|
IntNumber |
multiply(IntNumber n)
Returns the product
|
IntNumber |
divide(IntNumber n)
Returns the result of integer division
|
IntNumber |
add(LongNumber n)
Returns the sum
|
IntNumber |
subtract(LongNumber n)
Returns the difference
|
IntNumber |
multiply(LongNumber n)
Returns the product
|
IntNumber |
divide(LongNumber n)
Returns the result of integer division
|
RealNumber |
add(RealNumber n)
Returns the sum
|
RealNumber |
subtract(RealNumber n)
Returns the difference
|
RealNumber |
multiply(RealNumber n)
Returns the product
|
RealNumber |
divide(RealNumber n)
Returns the result of integer division
|
BoolValue |
equal(ByteNumber b)
Compares the value
|
BoolValue |
less(ByteNumber b)
Returns the true if the object is less than an argument;
otherwise returns false |
BoolValue |
equal(ShortNumber s)
Compares the value
|
BoolValue |
less(ShortNumber s)
Returns the true if the object is less than an argument;
otherwise returns false |
BoolValue |
equal(IntNumber n)
Compares the value
|
BoolValue |
less(IntNumber n)
Compares the value
|
BoolValue |
equal(LongNumber n)
Compares the value
|
BoolValue |
less(LongNumber n)
Compares the value
|
BoolValue |
equal(RealNumber n)
Compares the value
|
BoolValue |
less(RealNumber n)
Compares the value
|
ByteNumber |
band(ByteNumber n)
Returns the result of bitwise AND operation
|
ByteNumber |
bor(ByteNumber n)
Returns the result of bitwise OR operation
|
ByteNumber |
bxor(ByteNumber n)
Returns the result of bitwise XOR operation
|
ShortNumber |
band(ShortNumber n)
Returns the result of bitwise AND operation
|
ShortNumber |
bor(ShortNumber n)
Returns the result of bitwise OR operation
|
ShortNumber |
bxor(ShortNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
band(IntNumber n)
Returns the result of bitwise AND operation
|
IntNumber |
bor(IntNumber n)
Returns the result of bitwise OR operation
|
IntNumber |
bxor(IntNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
band(LongNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
bor(LongNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bxor(LongNumber n)
Returns the result of bitwise XOR operation
|
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
|
ByteNumber |
clone()
clones the value
|
| Modifier and Type | Extension Method |
|---|---|
get property IntNumber |
Hashcode()
Returns the hash code of the byte
|
get property ByteNumber |
Absolute()
Returns the absolute value of the byte
|
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
|
ByteNumber |
mod(Object operand)
returns the remainder of an integer division
|
BoolValue |
isOdd()
Returns true if the byte is odd
|
BoolValue |
isEven()
Returns true if the byte is even
|
BoolValue |
isZero()
Returns true if the byte is zero
|
BoolValue |
isPositive()
Returns true if the byte is positive
|
BoolValue |
isNegative()
Returns true if the byte is negative
|
BoolValue |
isNonnegative()
Returns true if the byte is not negative
|
public class CallStack
A call stack
| Modifier and Type | Field |
|---|---|
system'UnsafePointer[] |
stack
|
| Modifier and Type | Constructor / Static Method |
|---|---|
CallStack |
constructor()
|
CallStack |
constructor(IntNumber trimingLevel)
|
| Modifier and Type | Method |
|---|---|
String |
toPrintable()
Generates the call stack literal representation
|
public singleton CharConvertor
| Modifier and Type | Method |
|---|---|
CharValue |
convert(o)
|
|
convert(IntNumber n, ref CharValue retVal)
|
CharValue |
convert(IntNumber n)
|
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)
|
CharValue |
convert(ByteNumber b)
|
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 |
MinValue()
Returns the minimal possible character value (0)
|
get CharValue |
MaxValue()
Returns the maximal possible character value (010FFFFh)
|
get CharValue |
Default()
Returns the default value (0)
|
| Modifier and Type | Property |
|---|---|
get internal IntNumber |
Value()
|
get IntNumber |
Length()
Retuns the number of bytes to represent the symbol in UTF-8
|
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 |
|---|---|
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 |
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 |
String |
toPrintable()
returns the literal presentation
|
BoolValue |
equal(CharValue val)
Compares the value
|
BoolValue |
less(CharValue val)
Returns the true if the object value is less than an argument one;
otherwise returns false |
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(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 |
CharValue |
clone()
Clones the value
|
| Modifier and Type | Extension Method |
|---|---|
get property IntNumber |
Hashcode()
Returns the hash code of the character
|
BoolValue |
isNewLine()
Returns true if it is a new line character
|
BoolValue |
isWhitespace()
Returns true if it is a white space 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
|
public class ClassReference
| Modifier and Type | Field |
|---|---|
|
pointer
|
| Modifier and Type | Constructor / Static Method |
|---|---|
ClassReference |
constructor(String name)
Loads a symbol
|
| Modifier and Type | Method |
|---|---|
|
dispatch()
|
public singleton Console
| Modifier and Type | Property |
|---|---|
get BoolValue |
KeyAvailable()
|
| Modifier and Type | Method |
|---|---|
|
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()
|
CharValue |
readChar()
Reads the next character from the input stream
|
|
setCursorPosition(IntNumber x, IntNumber y)
|
|
clear()
|
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.
|
public class ConsoleHelperImpl
| Modifier and Type | Field |
|---|---|
IConsoleReader |
reader
|
IConsoleWriter |
writer
|
| Modifier and Type | Constructor / Static Method |
|---|---|
ConsoleHelperImpl |
new(IConsoleReader reader, IConsoleWriter writer)
|
| Modifier and Type | Property |
|---|---|
get BoolValue |
KeyAvailable()
|
| Modifier and Type | Method |
|---|---|
|
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()
|
CharValue |
readChar()
Reads the next character from the input stream
|
|
setCursorPosition(IntNumber x, IntNumber y)
|
|
clear()
|
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.
|
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
| Modifier and Type | Constructor / Static Method |
|---|---|
CriticalException |
new()
|
public class DivisionByZeroException
| Modifier and Type | Constructor / Static Method |
|---|---|
DivisionByZeroException |
new()
|
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 BoolValue |
next()
Goes to the next enumeration member and returns true if it is not the last member
|
abstract |
reset()
Resets the enumerator
|
abstract |
enumerable()
returns the enumerator owner
|
Enumerator |
enumerator()
returns itself
|
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 BoolValue |
next()
Goes to the next enumeration member and returns true if it is not the last member
|
abstract |
reset()
Resets the enumerator
|
abstract |
enumerable()
returns the enumerator owner
|
Enumerator<T1> |
enumerator()
|
public class Exception
A basic exception
| Modifier and Type | Constructor / Static Method |
|---|---|
Exception |
new(String message)
|
Exception |
new()
|
| Modifier and Type | Constructor / Static Method |
|---|---|
|
raise()
|
|
raise(String message)
|
| Modifier and Type | Property |
|---|---|
get String |
Message()
|
| Modifier and Type | Method |
|---|---|
String |
toPrintable()
Returns the message and the call stack
|
|
on(handler)
|
|
fallback(arg)
|
|
raise()
|
public class Extension
| Modifier and Type | Constructor / Static Method |
|---|---|
Extension |
constructor(target, extender)
|
| 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
| Modifier and Type | Constructor / Static Method |
|---|---|
ExtensionVariable |
constructor(target, extension)
|
| Modifier and Type | Method |
|---|---|
|
dispatch()
|
public class FormatException
| Modifier and Type | Constructor / Static Method |
|---|---|
FormatException |
new()
|
FormatException |
new(String message)
|
abstract public class Func
A base weak action without arguments
| Modifier and Type | Method |
|---|---|
abstract |
function()
An action code
Must be overridden |
|
doWhile(b)
Repeats the function while b is true
|
|
doUntil(b)
Repeats the function until b is true. The code is executed at least once
|
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 |
|
run(Enumerator en)
Executes the function for every enumeration item
|
|
retrieve(Enumerator en)
Executes the function for every enumeration item until it returns true
|
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 |
|
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
|
|
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
|
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 |
|
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
|
|
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
|
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 |
|
run(Object param, Enumerator en)
Executes the function for every enumeration item with param as a first argument
|
|
retrieve(Object param, Enumerator en)
Executes the function for every enumeration item with param as a first argument until it returns true
|
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 |
|
run(Object param1, Object param2, Enumerator en)
Executes the function for every enumeration item with param1 and param2 as first two argument
|
|
retrieve(Object param1, Object param2, Enumerator en)
Executes the function for every enumeration item with param1 and
|
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 |
|
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
|
|
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
|
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 |
|
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
|
|
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
|
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 |
|
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
|
|
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
|
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 |
|
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
|
|
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
|
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 |
|
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
|
|
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
|
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 |
|
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
|
|
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
|
public class Handle
| Modifier and Type | Field |
|---|---|
|
_value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Handle |
loadDirty(IntNumber value)
|
Handle |
constructor()
|
Handle |
constructor(UnsafePointer ptr)
|
| Modifier and Type | Static Property |
|---|---|
get Handle |
Default()
|
| Modifier and Type | Method |
|---|---|
BoolValue |
isUnassigned()
|
abstract public class IConsoleReader
| Modifier and Type | Property |
|---|---|
get abstract BoolValue |
KeyAvailable()
|
| Modifier and Type | Method |
|---|---|
abstract String |
readLine()
|
abstract WideString |
readWideLine()
|
abstract CharValue |
read()
|
abstract public class IConsoleWriter
| Modifier and Type | Method |
|---|---|
abstract |
write(WideString s)
|
abstract |
write(String s)
|
abstract |
clear()
|
abstract |
setCursorPosition(IntNumber x, IntNumber y)
|
abstract |
refresh()
|
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 |
Value()
Returns an element the given index
|
set abstract |
Value(value)
Set an element at the given index
|
get abstract IntNumber |
Index()
Index property
|
set abstract |
Index(IntNumber value)
Index property
|
get abstract IntNumber |
Length()
Returns the length of the corresponding collection
|
| 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 T1 |
Value()
Returns an element the given index
|
set abstract |
Value(T1 value)
Set an element at the given index
|
get abstract IntNumber |
Index()
Index property
|
set abstract |
Index(IntNumber value)
Index property
|
get abstract IntNumber |
Length()
Returns the length of the corresponding collection
|
| 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 |
|---|---|
abstract |
band(o)
Executes bitwise AND operation;
should be overridden |
abstract |
bor(o)
Executes bitwise OR operation;
should be overridden |
abstract |
bxor(o)
Executes bitwise XOR operation;
should be overridden |
|
band(BaseVariable var)
Executes bitwise AND with a variable value of var argument
|
|
bor(BaseVariable var)
Executes bitwise OR with a variable value of var argument
|
|
bxor(BaseVariable var)
Executes bitwise XOR with a variable value of var argument
|
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
|
public singleton IntConvertor
| Modifier and Type | Method |
|---|---|
IntNumber |
convert(o)
|
IntNumber |
convert(BaseVariable v)
|
IntNumber |
convert(IntNumber n)
|
IntNumber |
convert(ByteNumber b)
|
IntNumber |
convert(ShortNumber s)
|
IntNumber |
convert(UIntNumber n)
|
IntNumber |
convert(UShortNumber n)
|
IntNumber |
convert(CharValue ch)
|
IntNumber |
convert(LongNumber l)
|
IntNumber |
convert(RealNumber r)
|
IntNumber |
convert(String s, IntNumber radix)
|
IntNumber |
convert(String s)
|
IntNumber |
convert(WideString s, IntNumber radix)
|
IntNumber |
convert(WideString s)
|
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 |
Length()
Returns the number of rows
|
get IntNumber |
Columns()
Returns the number of columns
|
get IntNumber |
Rows()
Returns the number of rows
|
| Modifier and Type | Method |
|---|---|
|
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
|
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
|
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 |
MinValue()
Creates the object with the minimal value
|
get IntNumber |
MaxValue()
Creates the object with the maximal value
|
get IntNumber |
Default()
Returns the default value (0)
|
| Modifier and Type | Property |
|---|---|
get IntNumber |
Negative()
Returns the negated value
|
get IntNumber |
BInverted()
Bitwise inversion
|
| 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 |
|---|---|
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 |
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 |
String |
toPrintable()
|
|
add(o)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the IntNumber type |
|
subtract(o)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the IntNumber type |
|
multiply(o)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the IntNumber type |
|
divide(o)
Returns the result of integer division;
If no appropriate method overloading is found, an argument o is converted to the IntNumber type |
|
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 |
|
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 |
|
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 |
|
band(BaseVariable v)
Returns the result of bitwise AND operation with a variable value
|
|
bor(BaseVariable v)
Returns the result of bitwise OR operation with a variable value
|
|
bxor(BaseVariable v)
Returns the result of bitwise XOR operation with a variable value
|
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 |
less(ByteNumber b)
Compares the integer value
|
BoolValue |
equal(ShortNumber s)
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 |
equal(IntNumber n)
Compares the integer value
|
BoolValue |
notequal(IntNumber n)
Compares the integer value
|
BoolValue |
less(IntNumber n)
Compares the integer value
|
IntNumber |
add(IntNumber n)
Returns the sum
|
IntNumber |
subtract(IntNumber n)
Returns the difference
|
IntNumber |
multiply(IntNumber n)
Returns the product
|
IntNumber |
divide(IntNumber n)
Returns the result of integer division
|
IntNumber |
add(ByteNumber n)
Returns the sum
|
IntNumber |
subtract(ByteNumber n)
Returns the difference
|
IntNumber |
multiply(ByteNumber n)
Returns the product
|
IntNumber |
divide(ByteNumber n)
Returns the result of integer division
|
IntNumber |
add(ShortNumber n)
Returns the sum
|
IntNumber |
subtract(ShortNumber n)
Returns the difference
|
IntNumber |
multiply(ShortNumber n)
Returns the product
|
IntNumber |
divide(ShortNumber n)
Returns the result of integer division
|
LongNumber |
add(LongNumber n)
Returns the sum
|
LongNumber |
subtract(LongNumber n)
Returns the difference
|
LongNumber |
multiply(LongNumber n)
Returns the product
|
LongNumber |
divide(LongNumber n)
Returns the result of integer division
|
RealNumber |
add(RealNumber n)
Returns the sum
|
RealNumber |
subtract(RealNumber n)
Returns the difference
|
RealNumber |
multiply(RealNumber n)
Returns the product
|
RealNumber |
divide(RealNumber n)
Returns the result of the division as a real number
|
IntNumber |
band(IntNumber n)
Returns the result of bitwise AND operation
|
IntNumber |
bor(IntNumber n)
Returns the result of bitwise OR operation
|
IntNumber |
bxor(IntNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
band(ByteNumber n)
Returns the result of bitwise AND operation
|
IntNumber |
bor(ByteNumber n)
Returns the result of bitwise OR operation
|
IntNumber |
bxor(ByteNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
band(ShortNumber n)
Returns the result of bitwise AND operation
|
IntNumber |
bor(ShortNumber n)
Returns the result of bitwise OR operation
|
IntNumber |
bxor(ShortNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
band(LongNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
bor(LongNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bxor(LongNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
clone()
Clones the 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
|
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
|
| Modifier and Type | Extension Method |
|---|---|
get property IntNumber |
Hashcode()
Returns the hash code of the integer
|
get property IntNumber |
Absolute()
Returns the absolute value of the integer
|
IntNumber |
power(IntNumber y)
returns the power of the integer raised to y
|
IntNumber |
sqr()
returns the power of the integer raised to 2
|
IntNumber |
sqrt()
returns the square root of the integer
|
RealNumber |
realDiv(Object n)
returns the result of a real division
|
IntNumber |
mod(IntNumber operand)
returns the remainder of an integer division
|
IntNumber |
mod(Object o)
returns the remainder of an integer division
|
BoolValue |
isOdd()
Returns true if the integer is odd
|
BoolValue |
isEven()
Returns true if the integer is even
|
BoolValue |
isZero()
Returns true if the integer is zero
|
BoolValue |
isPositive()
Returns true if the integer is positive
|
BoolValue |
isNegative()
Returns true if the integer is negative
|
BoolValue |
isNonnegative()
Returns true if the integer is not negative
|
get property ShortNumber |
High()
Returns a high word of the integer
|
get property ShortNumber |
Low()
Returns a low word of the integer
|
public class InvalidArgumentException
| Modifier and Type | Constructor / Static Method |
|---|---|
InvalidArgumentException |
new()
Creates the exception
|
InvalidArgumentException |
new(String argument)
Creates the exception
|
public class InvalidOperationException
| Modifier and Type | Constructor / Static Method |
|---|---|
InvalidOperationException |
new()
Creates the exception
|
InvalidOperationException |
new(String message)
Creates the exception
|
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 |
|---|---|
BoolValue |
equal(o)
Compares the argument with the object value field
|
String |
toPrintable()
returns the literal presentation of the value
|
|
dispatch()
Redirects the incoming messages to the value
|
public singleton LongConvertor
| Modifier and Type | Method |
|---|---|
LongNumber |
convert(o)
|
LongNumber |
convert(BaseVariable v)
|
LongNumber |
convert(LongNumber l)
|
LongNumber |
convert(ByteNumber b)
|
LongNumber |
convert(ShortNumber s)
|
LongNumber |
convert(IntNumber n)
|
LongNumber |
convert(UIntNumber n)
|
LongNumber |
convert(RealNumber r)
|
LongNumber |
convert(CharValue ch)
|
LongNumber |
convert(String s, IntNumber radix)
|
LongNumber |
convert(String s)
|
LongNumber |
convert(WideString s, IntNumber radix)
|
LongNumber |
convert(WideString s)
|
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 |
MinValue()
Returns the minimal value
|
get LongNumber |
MaxValue()
Returns the maximal value
|
get LongNumber |
Default()
Returns the default value (0)
|
| Modifier and Type | Property |
|---|---|
get LongNumber |
Negative()
Returns the negated value
|
get LongNumber |
BInverted()
Bitwise inversion
|
| 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 |
|---|---|
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 |
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 |
String |
toPrintable()
Returns literal representation.
|
|
add(n)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the LongNumber type |
|
subtract(n)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the LongNumber type |
|
multiply(n)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the LongNumber type |
|
divide(n)
Returns the result of integer division;
If no appropriate method overloading is found, an argument o is converted to the LongNumber type |
|
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 |
|
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 |
|
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 |
BoolValue |
equal(LongNumber n)
Compares the value
|
BoolValue |
less(LongNumber n)
Compares the value
|
BoolValue |
equal(ByteNumber b)
Compares the integer value
|
BoolValue |
less(ByteNumber b)
|
BoolValue |
equal(ShortNumber s)
Compares the integer value
|
BoolValue |
less(ShortNumber s)
|
BoolValue |
equal(IntNumber n)
Compares the integer value
|
BoolValue |
less(IntNumber n)
Compares the integer value
|
BoolValue |
equal(RealNumber n)
Compares the integer value
|
BoolValue |
less(RealNumber n)
Compares the integer value
|
LongNumber |
add(LongNumber n)
Returns the sum
|
LongNumber |
subtract(LongNumber n)
Returns the difference
|
LongNumber |
multiply(LongNumber n)
Returns the product
|
LongNumber |
divide(LongNumber n)
Returns the result of integer division
|
LongNumber |
add(ByteNumber n)
Returns the sum
|
LongNumber |
subtract(ByteNumber n)
Returns the difference
|
LongNumber |
multiply(ByteNumber n)
Returns the product
|
LongNumber |
divide(ByteNumber n)
Returns the result of integer division
|
LongNumber |
add(ShortNumber n)
Returns the sum
|
LongNumber |
subtract(ShortNumber n)
Returns the difference
|
LongNumber |
multiply(ShortNumber n)
Returns the product
|
LongNumber |
divide(ShortNumber n)
Returns the result of integer division
|
LongNumber |
add(IntNumber n)
Returns the sum
|
LongNumber |
subtract(IntNumber n)
Returns the difference
|
LongNumber |
multiply(IntNumber n)
Returns the product
|
LongNumber |
divide(IntNumber n)
Returns the result of integer division
|
LongNumber |
add(UIntNumber n)
Returns the sum
|
LongNumber |
subtract(UIntNumber n)
Returns the difference
|
LongNumber |
multiply(UIntNumber n)
Returns the product
|
LongNumber |
divide(UIntNumber n)
Returns the result of integer division
|
RealNumber |
add(RealNumber n)
Returns the sum as a real number
|
RealNumber |
subtract(RealNumber n)
Returns the difference as a real number
|
RealNumber |
multiply(RealNumber n)
Returns the product as a real number
|
RealNumber |
divide(RealNumber n)
Returns the result of a division as a real number
|
LongNumber |
band(LongNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
bor(LongNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bxor(LongNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
band(ByteNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
bor(ByteNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bxor(ByteNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
band(ShortNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
bor(ShortNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bxor(ShortNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
band(IntNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
bor(IntNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bxor(IntNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
band(UIntNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
bor(UIntNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bxor(UIntNumber n)
Returns the result of bitwise XOR operation
|
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
|
LongNumber |
clone()
Returns the value copy
|
| Modifier and Type | Extension Method |
|---|---|
get property IntNumber |
Hashcode()
Returns the hash code of the long integer
|
get property LongNumber |
Absolute()
Returns the absolute value of the long integer
|
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
|
LongNumber |
sqr()
returns the power of the long integer raised to 2
|
LongNumber |
sqrt()
returns the square root of the long integer
|
RealNumber |
realDiv(Object n)
returns the result of a real division
|
LongNumber |
mod(LongNumber operand)
returns the remainder of an long integer division
|
LongNumber |
mod(Object n)
returns the remainder of an long integer division
|
BoolValue |
isOdd()
Returns true if the long integer is odd
|
BoolValue |
isEven()
Returns true if the long integer is even
|
BoolValue |
isZero()
Returns true if the long integer is zero
|
BoolValue |
isPositive()
Returns true if the long integer is positive
|
BoolValue |
isNegative()
Returns true if the long integer is negative
|
BoolValue |
isNonnegative()
Returns true if the long integer is not negative
|
get property IntNumber |
High()
Returns a high integer of the long integer
|
get property IntNumber |
Low()
Returns a low integer 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
|
| Modifier and Type | Property |
|---|---|
get IntNumber |
Length()
Returns the number of rows
|
get IntNumber |
Columns()
Returns the number of columns
|
get IntNumber |
Rows()
Returns the number of rows
|
| Modifier and Type | Method |
|---|---|
|
setAt(IntNumber i, IntNumber j, T1 v)
Assigns v argument to the matrix element at a row i and a column j
|
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 |
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 |
|---|---|
String |
toPrintable()
Returns a message literal constant
|
|
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
|
public class MessageLoaderException
| Modifier and Type | Constructor / Static Method |
|---|---|
MessageLoaderException |
new(String 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 |
|---|---|
String |
toPrintable()
Returns a message name as a literal constant
|
|
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
|
public class MethodNotFoundException
| Modifier and Type | Constructor / Static Method |
|---|---|
MethodNotFoundException |
new(Object target, Message mssg)
|
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
| Modifier and Type | Constructor / Static Method |
|---|---|
NilReferenceException |
new()
|
public singleton NilValue
A nil value
| Modifier and Type | Method |
|---|---|
BoolValue |
equal(object)
Returns true if the specified object is nil. Otherwise the result is false
|
|
dispatch()
|
|
typecast:#generic()
Returns nil
Any typecasting message will be handled and nil value returned |
public class NotSupportedException
| Modifier and Type | Constructor / Static Method |
|---|---|
NotSupportedException |
new()
|
NotSupportedException |
new(String message)
|
public class Object
a common ancestor
| Modifier and Type | Constructor / Static Method |
|---|---|
Object |
constructor()
Creates an object
|
| Modifier and Type | Method |
|---|---|
predefined BoolValue |
less(arg1)
|
predefined BoolValue |
greater(arg1)
|
predefined BoolValue |
notless(arg1)
|
predefined BoolValue |
notgreater(arg1)
|
BoolValue |
equal(o)
Returns true if the specified object is equal to the current object; otherwise, false. By default compares the object references.
|
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].
|
String |
toPrintable()
Returns the string representation. By default it returns the class name.
|
|
dispatch()
Implements a message dispatching in VMT
|
| Modifier and Type | Extension Method |
|---|---|
|
back(Object o)
Returns the parameter
|
BoolValue |
equalReference(Object o)
Returns true if the specified object instances are equal; otherwise, false.
|
|
then(Func f)
Executes the parameter function
|
|
then(Func1 f)
Executes the parameter function and pass itself as a parameter
|
String |
__getClassName()
Returns the object class name
|
|
__getClass()
Returns the object class
|
|
__getParentClass()
Returns the parent class
|
|
__getParent()
Returns the parent of the specified class
|
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
|
BoolValue |
isEmpty()
Returns true if the object length is 0
|
BoolValue |
isNonempty()
Returns true if the object length is not 0
|
BoolValue |
isNil()
Returns true if the object is nil
|
|
doWith(Object action)
Invokes action function passing the object as an argument
|
BoolValue |
instanceOf(Object type)
Checks if the object is an instance of type
|
BoolValue |
subsetOf(Object type)
Returns true if the object is an instance of a child of type
|
BoolValue |
isLiteral()
Returns true if the object is literal or character
|
BoolValue |
isInteger()
Returns true if the object is an integer number
|
BoolValue |
isNumber()
Returns true if the object is a number
|
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 |
|
fillString(Object s, IntNumber counter)
Writes the argument s to the object, counter times
The object must support write message |
|
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 |
|
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 |
|
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, 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 |
|
enterCriticalSection()
Locks the object
|
|
leaveCriticalSection()
Unlocks the object
|
public class OutOfRangeException
| Modifier and Type | Constructor / Static Method |
|---|---|
OutOfRangeException |
new()
|
OutOfRangeException |
new(String 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 |
|---|---|
String |
toPrintable()
Returns a property name as a literal constant
|
|
dispatch()
Qualifies incoming messages and redirects to the target
|
BoolValue |
equal(MessageName subject)
Returns true if the message name is equal to subject
|
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 |
new(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
|
| 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)
|
RealNumber |
convert(RealNumber r)
|
RealNumber |
convert(BaseVariable v)
|
RealNumber |
convert(String s)
|
RealNumber |
convert(WideString w)
|
RealNumber |
convert(ByteNumber b)
|
RealNumber |
convert(ShortNumber s)
|
RealNumber |
convert(IntNumber n)
|
RealNumber |
convert(UIntNumber n)
|
RealNumber |
convert(LongNumber l)
|
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 |
Length()
Returns the number of rows
|
get IntNumber |
Columns()
Returns the number of columns
|
get IntNumber |
Rows()
Returns the number of rows
|
| Modifier and Type | Method |
|---|---|
|
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
|
|
read(IntNumber i, IntNumber j, ref RealNumber retVal)
Reads a real value at the specified position and saves it into an output variable
|
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
|
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 |
MinValue()
Returns the minimal value
|
get RealNumber |
MaxValue()
Returns the maximal value
|
get RealNumber |
Default()
Returns the default value (0)
|
get RealNumber |
NegativeInfinity()
Returns the negative infinity
|
get RealNumber |
PositiveInfinity()
Returns the positive infinity
|
get RealNumber |
NaN()
Returns the positive infinity
|
get RealNumber |
Pi()
Returns Pi value
|
| Modifier and Type | Property |
|---|---|
get RealNumber |
Negative()
Negates the value
|
| Modifier and Type | Method |
|---|---|
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 |
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 |
String |
toPrintable()
Returns the literal presentation
|
|
add(n)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the RealNumber type |
|
subtract(n)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the RealNumber type |
|
multiply(n)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the RealNumber type |
|
divide(n)
Returns the result of integer division;
If no appropriate method overloading is found, an argument o is converted to the RealNumber type |
BoolValue |
equal(RealNumber n)
Compares the value
|
BoolValue |
less(RealNumber n)
Compares the value
|
RealNumber |
add(RealNumber n)
Returns the sum
|
RealNumber |
subtract(RealNumber n)
Returns the difference
|
RealNumber |
multiply(RealNumber n)
Returns the product
|
RealNumber |
divide(RealNumber n)
Returns the result of integer division
|
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(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
|
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 |
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
|
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
|
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
|
RealNumber |
clone()
Clones the value
|
| Modifier and Type | Extension Method |
|---|---|
get property IntNumber |
Hashcode()
Returns the hash code 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
|
RealNumber |
sqr()
returns the power of the real number raised to 2
|
RealNumber |
sqrt()
returns the square root of the real number
|
RealNumber |
exp()
Returns the result of e raised to the power of the real number
|
RealNumber |
ln()
returns the natural logarithm of the real number
|
RealNumber |
sin()
returns the trigonometric sines of the real number
|
RealNumber |
cos()
returns the trigonometric cosines of the real number
|
RealNumber |
tan()
returns the trigonometric tangents of the real number
|
RealNumber |
arctan()
returns the trigonometric inverse tangents (arctan) of the real number
|
RealNumber |
arcsin()
returns the trigonometric inverse sines (arcsin) of the real number
|
RealNumber |
arccos()
returns the trigonometric inverse cosines (arccos) of the real number
|
RealNumber |
log2()
returns the base 2 logarithm of the real number
|
RealNumber |
log10()
returns the base 10 logarithm 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
|
get property RealNumber |
Rounded()
Rounds real number
|
get property IntNumber |
RoundedInt()
Rounds real number as an integer
|
get property RealNumber |
Absolute()
Returns the absolute value of the real number
|
get property RealNumber |
Reciprocal()
Returns the reciprocal (1/x) of the real number
|
RealNumber |
frac()
Returns the fractional part of the real number
|
RealNumber |
ceil()
Returns the smallest integer value not less than the real number
|
RealNumber |
floor()
Round numbers down to the nearest integer
|
RealNumber |
round(IntNumber precision)
Returns the real number rounded to precision digits after the dot
|
RealNumber |
truncate(IntNumber precision)
Returns the real number truncated to precision digits after the dot
|
get property RealNumber |
Radian()
Returns the real number as a radian
|
get property RealNumber |
Degree()
Returns the real number as a degree
|
BoolValue |
isZero()
Returns true if the real number is zero
|
BoolValue |
isPositive()
Returns true if the real number is positive
|
BoolValue |
isNegative()
Returns true if the real number is negative
|
BoolValue |
isNonnegative()
Returns true if the real number is not negative
|
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 |
|---|---|
BoolValue |
equal(o)
Returns true if o is equal to the variable value; otherwise, false
|
String |
toPrintable()
Returns the value string representation
|
|
dispatch()
|
public singleton SByteConvertor
| Modifier and Type | Method |
|---|---|
|
convert(IntNumber n, ref SByteNumber retVal)
|
SByteNumber |
convert(IntNumber n)
|
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 |
MinValue()
returns the minimal value (-127)
|
get SByteNumber |
MaxValue()
Returns the maxial value (128)
|
get SByteNumber |
Default()
Returns the default value
|
| 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 |
|---|---|
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 |
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 |
String |
toPrintable()
returns the literal presentation
|
|
add(o)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the SByteNumber type |
|
subtract(o)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the SByteNumber type |
|
multiply(o)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the SByteNumber type |
|
divide(o)
Returns the result of integer division;
If no appropriate method overloading is found, an argument o is converted to the SByteNumber type |
|
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 |
|
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 |
|
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 |
add(SByteNumber n)
Returns the sum
|
SByteNumber |
subtract(SByteNumber n)
Returns the difference
|
SByteNumber |
multiply(SByteNumber n)
Returns the product
|
SByteNumber |
divide(SByteNumber n)
Returns the result of integer division
|
ShortNumber |
add(ShortNumber n)
Returns the sum
|
ShortNumber |
subtract(ShortNumber n)
Returns the difference
|
ShortNumber |
multiply(ShortNumber n)
Returns the product
|
ShortNumber |
divide(ShortNumber n)
Returns the result of integer division
|
IntNumber |
add(IntNumber n)
Returns the sum
|
IntNumber |
subtract(IntNumber n)
Returns the difference
|
IntNumber |
multiply(IntNumber n)
Returns the product
|
IntNumber |
divide(IntNumber n)
Returns the result of integer division
|
IntNumber |
add(LongNumber n)
Returns the sum
|
IntNumber |
subtract(LongNumber n)
Returns the difference
|
IntNumber |
multiply(LongNumber n)
Returns the product
|
IntNumber |
divide(LongNumber n)
Returns the result of integer division
|
RealNumber |
add(RealNumber n)
Returns the sum
|
RealNumber |
subtract(RealNumber n)
Returns the difference
|
RealNumber |
multiply(RealNumber n)
Returns the product
|
RealNumber |
divide(RealNumber n)
Returns the result of integer division
|
BoolValue |
equal(SByteNumber b)
Compares the value
|
BoolValue |
less(SByteNumber b)
Returns the true if the object is less than an argument;
otherwise returns false |
BoolValue |
equal(ShortNumber s)
Compares the value
|
BoolValue |
less(ShortNumber s)
Returns the true if the object is less than an argument;
otherwise returns false |
BoolValue |
equal(IntNumber n)
Compares the value
|
BoolValue |
less(IntNumber n)
Returns the true if the object is less than an argument;
otherwise returns false |
BoolValue |
equal(LongNumber n)
Compares the value
|
BoolValue |
less(LongNumber n)
Returns the true if the object is less than an argument;
otherwise returns false |
BoolValue |
equal(RealNumber n)
Compares the value
|
BoolValue |
less(RealNumber n)
Returns the true if the object is less than an argument;
otherwise returns false |
SByteNumber |
band(SByteNumber n)
Returns the result of bitwise AND operation
|
SByteNumber |
bor(SByteNumber n)
Returns the result of bitwise OR operation
|
SByteNumber |
bxor(SByteNumber n)
Returns the result of bitwise XOR operation
|
ShortNumber |
band(ShortNumber n)
Returns the result of bitwise AND operation
|
ShortNumber |
bor(ShortNumber n)
Returns the result of bitwise OR operation
|
ShortNumber |
bxor(ShortNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
band(IntNumber n)
Returns the result of bitwise AND operation
|
IntNumber |
bor(IntNumber n)
Returns the result of bitwise OR operation
|
IntNumber |
bxor(IntNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
band(LongNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
bor(LongNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bxor(LongNumber n)
Returns the result of bitwise XOR operation
|
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
|
SByteNumber |
clone()
clones the value
|
public singleton ShortArrayConvertor
| Modifier and Type | Method |
|---|---|
IntNumber |
convert(String sour, IntNumber sourLen, system'ShortNumber[] dest, IntNumber destIndex, IntNumber destLen)
|
public singleton ShortConvertor
| Modifier and Type | Method |
|---|---|
ShortNumber |
convert(o)
|
ShortNumber |
convert(BaseVariable v)
|
ShortNumber |
convert(ByteNumber b)
|
ShortNumber |
convert(ShortNumber s)
|
ShortNumber |
convert(IntNumber n)
|
ShortNumber |
convert(UIntNumber n)
|
ShortNumber |
convert(LongNumber l)
|
ShortNumber |
convert(RealNumber r)
|
ShortNumber |
convert(CharValue ch)
|
ShortNumber |
convert(String s, IntNumber radix)
|
ShortNumber |
convert(WideString s, IntNumber radix)
|
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 |
MinValue()
Returns the minimal value (-32768)
|
get ShortNumber |
MaxValue()
Returns the maxial value (32767)
|
get ShortNumber |
Default()
Returns the value value (0)
|
| Modifier and Type | Property |
|---|---|
get ShortNumber |
Negative()
Returns negated value
|
get ShortNumber |
BInverted()
bitwise inversion
|
| 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 |
|---|---|
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 |
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 |
String |
toPrintable()
returns the literal presentation
|
|
add(o)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the ShortNumber type |
|
subtract(o)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the ShortNumber type |
|
multiply(o)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the ShortNumber type |
|
divide(o)
Returns the result of integer division;
If no appropriate method overloading is found, an argument o is converted to the ShortNumber type |
|
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 |
|
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 |
|
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 |
add(ShortNumber n)
returns the sum
|
ShortNumber |
subtract(ShortNumber n)
returns the difference
|
ShortNumber |
multiply(ShortNumber n)
returns the product
|
ShortNumber |
divide(ShortNumber n)
returns the result of integer division
|
ShortNumber |
add(ByteNumber n)
returns the sum
|
ShortNumber |
subtract(ByteNumber n)
returns the difference
|
ShortNumber |
multiply(ByteNumber n)
returns the product
|
ShortNumber |
divide(ByteNumber n)
returns the result of integer division
|
IntNumber |
add(IntNumber n)
returns the sum
|
IntNumber |
subtract(IntNumber n)
returns the difference
|
IntNumber |
multiply(IntNumber n)
returns the product
|
IntNumber |
divide(IntNumber n)
returns the result of integer division
|
LongNumber |
add(LongNumber n)
returns the sum
|
LongNumber |
subtract(LongNumber n)
returns the difference
|
LongNumber |
multiply(LongNumber n)
returns the product
|
LongNumber |
divide(LongNumber n)
returns the result of integer division
|
RealNumber |
add(RealNumber n)
returns the sum
|
RealNumber |
subtract(RealNumber n)
returns the difference
|
RealNumber |
multiply(RealNumber n)
returns the product
|
RealNumber |
divide(RealNumber n)
returns the result of integer division
|
ShortNumber |
band(ShortNumber n)
Returns the result of bitwise AND operation
|
ShortNumber |
bor(ShortNumber n)
Returns the result of bitwise OR operation
|
ShortNumber |
bxor(ShortNumber n)
Returns the result of bitwise XOR operation
|
ShortNumber |
band(ByteNumber n)
Returns the result of bitwise AND operation
|
ShortNumber |
bor(ByteNumber n)
Returns the result of bitwise OR operation
|
ShortNumber |
bxor(ByteNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
band(IntNumber n)
Returns the result of bitwise AND operation
|
IntNumber |
bor(IntNumber n)
Returns the result of bitwise OR operation
|
IntNumber |
bxor(IntNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
band(LongNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
bor(LongNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bxor(LongNumber n)
Returns the result of bitwise XOR operation
|
BoolValue |
equal(ShortNumber b)
compares the value
|
BoolValue |
less(ShortNumber b)
compares the value
|
BoolValue |
equal(ByteNumber b)
compares the value
|
BoolValue |
less(ByteNumber b)
compares the value
|
BoolValue |
equal(IntNumber n)
compares the value
|
BoolValue |
less(IntNumber n)
compares the value
|
BoolValue |
equal(LongNumber n)
compares the value
|
BoolValue |
less(LongNumber n)
compares the value
|
BoolValue |
equal(RealNumber n)
compares the value
|
BoolValue |
less(RealNumber n)
compares the value
|
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
|
ShortNumber |
clone()
clones the value
|
| Modifier and Type | Extension Method |
|---|---|
get property IntNumber |
Hashcode()
Returns the hash code of the short integer
|
get property ShortNumber |
Absolute()
Returns the absolute value of the short integer
|
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
|
ShortNumber |
mod(Object operand)
returns the remainder of an integer division
|
BoolValue |
isOdd()
Returns true if the short integer is odd
|
BoolValue |
isEven()
Returns true if the short integer is even
|
BoolValue |
isZero()
Returns true if the short integer is zero
|
BoolValue |
isPositive()
Returns true if the short integer is positive
|
BoolValue |
isNegative()
Returns true if the short integer is negative
|
BoolValue |
isNonnegative()
Returns true if the short integer is not negative
|
get property ByteNumber |
High()
Returns a high byte of the short integer
|
get property ByteNumber |
Low()
Returns a low byte 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 |
Left()
|
get ShortNumber |
Top()
|
get ShortNumber |
Right()
|
get ShortNumber |
Bottom()
|
| Modifier and Type | Method |
|---|---|
|
write(SMALL_RECT r)
|
public class StackOverflowException
| Modifier and Type | Constructor / Static Method |
|---|---|
StackOverflowException |
new()
|
StackOverflowException |
new(String message)
|
| Modifier and Type | Method |
|---|---|
String |
toPrintable()
|
public class StartUpEvents
| 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 |
stopping()
|
internal |
handlingError(e)
|
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 |
fill(IntNumber size, CharValue ch)
Creates the literal string with specified length size fills with character ch
|
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
|
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 |
|---|---|
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 |
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
|
String |
toPrintable()
Returns itself
|
String |
add(o)
|
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 |
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 |
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 |
add(BaseVariable v)
|
String |
add(String subs)
Concatenate the values
|
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
|
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
|
String |
Substring(IntNumber index, IntNumber length)
Returns the substring from index and with the specified length
|
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)
|
Enumerator<system'CharValue> |
enumerator()
Returns the string enumerator
|
Indexer<system'CharValue> |
indexer()
Returns the string indexer
|
String |
clone()
Clones the value
|
| Modifier and Type | Extension Method |
|---|---|
String |
Substring(IntNumber index)
Returns a substring starting from index till the end
|
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 |
get property IntNumber |
Hashcode()
Returns the hash code of the string
|
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
|
BoolValue |
startingWith(String s)
Returns true if the string starts with the specified string s
|
BoolValue |
endingWith(String s)
Returns true if the string ends with the specified string s
|
BoolValue |
containing(String s)
Returns true if the string contains the specified string s
|
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
|
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 |
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
|
public singleton StringConvertor
| Modifier and Type | Method |
|---|---|
String |
convert(o)
|
String |
convert(ByteNumber b, IntNumber radix)
|
String |
convert(IntNumber value, IntNumber radix)
|
String |
convert(IntNumber value)
|
String |
convert(LongNumber value, IntNumber radix)
|
String |
convert(UIntNumber value, IntNumber radix)
|
String |
convert(ShortNumber value, IntNumber radix)
|
String |
convert(RealNumber value)
|
String |
convert(CharValue ch)
|
String |
convert(BaseVariable v)
|
String |
convert(BaseVariable v, IntNumber radix)
|
String |
convert(WideString w)
|
String |
convert(String s)
|
public class Symbol
| Modifier and Type | Field |
|---|---|
|
pointer
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Symbol |
constructor(String name)
|
Symbol |
constructor(UnsafePointer ptr)
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Symbol |
tryLoad(String ns, String name)
|
| Modifier and Type | Static Property |
|---|---|
get Symbol |
Default()
|
| Modifier and Type | Method |
|---|---|
|
dispatch()
|
BoolValue |
equal(Symbol s)
|
BoolValue |
notequal(Symbol s)
|
public class SymbolLoaderException
| Modifier and Type | Constructor / Static Method |
|---|---|
SymbolLoaderException |
new(String symbolName)
|
public class TypeLoaderException
| Modifier and Type | Constructor / Static Method |
|---|---|
TypeLoaderException |
new(String className)
|
public singleton UIntConvertor
| Modifier and Type | Method |
|---|---|
UIntNumber |
convert(o)
|
UIntNumber |
convert(UIntNumber n)
|
UIntNumber |
convert(IntNumber n)
|
UIntNumber |
convert(ByteNumber b)
|
UIntNumber |
convert(ShortNumber s)
|
UIntNumber |
convert(LongNumber l)
|
UIntNumber |
convert(String s)
|
UIntNumber |
convert(String s, IntNumber radix)
|
UIntNumber |
convert(WideString s, IntNumber radix)
|
public class UIntNumber
A unsigned 32 bit integer
| Modifier and Type | Field |
|---|---|
|
_value
|
| Modifier and Type | Constructor / Static Method |
|---|---|
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
|
UIntNumber |
#constructor(String s)
|
UIntNumber |
#constructor(String s)
|
| Modifier and Type | Static Property |
|---|---|
get UIntNumber |
MinValue()
Creates the object with the minimal value
|
get UIntNumber |
MaxValue()
Creates the object with the maximal value
|
get UIntNumber |
Default()
Returns the default value (0)
|
| 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 |
|---|---|
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 |
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 |
String |
toPrintable()
Returns the literal presentation
|
|
add(n)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the UIntNumber type |
|
subtract(n)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the UIntNumber type |
|
multiply(n)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the UIntNumber type |
|
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 |
add(BaseVariable v)
Returns the sum of the object and a variable value
|
UIntNumber |
subtract(BaseVariable v)
Returns the difference of the object and a variable value
|
UIntNumber |
multiply(BaseVariable v)
Returns the product of the object and a variable value
|
UIntNumber |
divide(BaseVariable v)
Returns the result of integer division
|
|
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 |
|
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 |
|
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 |
BoolValue |
equal(UIntNumber n)
Compares the value
|
BoolValue |
less(UIntNumber n)
Compares the value
|
BoolValue |
equal(IntNumber n)
Compares the value
|
BoolValue |
less(IntNumber n)
Compares the value
|
BoolValue |
equal(ShortNumber n)
Compares the value
|
BoolValue |
equal(ByteNumber n)
Compares the value
|
BoolValue |
less(ByteNumber n)
Compares the value
|
BoolValue |
equal(LongNumber n)
Compares the value
|
BoolValue |
less(LongNumber n)
Compares the value
|
BoolValue |
equal(RealNumber n)
Compares the value
|
BoolValue |
less(RealNumber n)
Compares the value
|
UIntNumber |
add(UIntNumber n)
Returns the sum
|
UIntNumber |
subtract(UIntNumber n)
Returns the difference
|
UIntNumber |
multiply(UIntNumber n)
Returns the product
|
UIntNumber |
divide(UIntNumber n)
Returns the result of integer division
|
IntNumber |
add(IntNumber n)
Returns the sum
|
IntNumber |
subtract(IntNumber n)
Returns the difference
|
IntNumber |
multiply(IntNumber n)
Returns the product
|
IntNumber |
divide(IntNumber n)
Returns the result of integer division
|
IntNumber |
add(ByteNumber n)
Returns the sum
|
IntNumber |
subtract(ByteNumber n)
Returns the difference
|
IntNumber |
multiply(ByteNumber n)
Returns the product
|
IntNumber |
divide(ByteNumber n)
Returns the result of integer division
|
IntNumber |
add(ShortNumber n)
Returns the sum
|
IntNumber |
subtract(ShortNumber n)
Returns the difference
|
IntNumber |
multiply(ShortNumber n)
Returns the product
|
IntNumber |
divide(ShortNumber n)
Returns the result of integer division
|
LongNumber |
add(LongNumber n)
Returns the sum as a long integer
|
LongNumber |
subtract(LongNumber n)
Returns the difference as a long integer
|
LongNumber |
multiply(LongNumber n)
Returns the product as a long integer
|
LongNumber |
divide(LongNumber n)
Returns the result of integer division as a long integer
|
RealNumber |
add(RealNumber n)
Returns the sum as a real number
|
RealNumber |
subtract(RealNumber n)
Returns the difference as a real number
|
RealNumber |
multiply(RealNumber n)
Returns the product as a real number
|
RealNumber |
divide(RealNumber n)
Returns the result of the division as a real number
|
UIntNumber |
band(UIntNumber n)
Returns the result of bitwise AND operation
|
UIntNumber |
bor(UIntNumber n)
Returns the result of bitwise OR operation
|
UIntNumber |
bxor(UIntNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
band(IntNumber n)
Returns the result of bitwise AND operation
|
IntNumber |
bor(IntNumber n)
Returns the result of bitwise OR operation
|
IntNumber |
bxor(IntNumber n)
Returns the result of bitwise XOR operation
|
UIntNumber |
band(ShortNumber n)
Returns the result of bitwise AND operation
|
UIntNumber |
bor(ShortNumber n)
Returns the result of bitwise OR operation
|
UIntNumber |
bxor(ShortNumber n)
Returns the result of bitwise XOR operation
|
UIntNumber |
band(ByteNumber n)
Returns the result of bitwise AND operation
|
UIntNumber |
bor(ByteNumber n)
Returns the result of bitwise OR operation
|
UIntNumber |
bxor(ByteNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
band(LongNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
bor(LongNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bxor(LongNumber n)
Returns the result of bitwise XOR operation
|
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
|
UIntNumber |
clone()
Returns the value copy
|
| Modifier and Type | Extension Method |
|---|---|
get property IntNumber |
Hashcode()
Returns the hash code of the unsigned integer
|
UIntNumber |
sqr()
returns the power of the unsigned integer raised to 2
|
UIntNumber |
sqrt()
returns the square root of the unsigned integer
|
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
|
BoolValue |
isOdd()
Returns true if the integer is odd
|
BoolValue |
isEven()
Returns true if the integer is even
|
BoolValue |
isZero()
Returns true if the integer is zero
|
public class UnsafeArray
| Modifier and Type | Field |
|---|---|
|
_pointer
|
| Modifier and Type | Constructor / Static Method |
|---|---|
UnsafeArray |
constructor()
|
UnsafeArray |
constructor(UnsafePointer ptr)
|
| Modifier and Type | Method |
|---|---|
UnsafePointer |
at(IntNumber index)
|
public class UnsafePointer
| Modifier and Type | Field |
|---|---|
|
_pointer
|
| Modifier and Type | Constructor / Static Method |
|---|---|
UnsafePointer |
constructor()
|
UnsafePointer |
constructor(UnsafePointer ptr)
|
UnsafePointer |
constructor(Object obj)
|
| Modifier and Type | Static Property |
|---|---|
get UnsafePointer |
Default()
|
| Modifier and Type | Property |
|---|---|
get UnsafePointer |
Value()
|
set IntNumber |
Value(ref IntNumber arg1)
|
set RealNumber |
Value(ref RealNumber arg1)
|
set LongNumber |
Value(ref LongNumber arg1)
|
set String |
Value(ref String arg1)
|
set WideString |
Value(ref WideString arg1)
|
| Modifier and Type | Conversion Method |
|---|---|
String |
cast()
|
WideString |
cast()
|
IntNumber |
cast()
|
| Modifier and Type | Method |
|---|---|
BoolValue |
isUnassigned()
|
LongNumber |
getLongValue()
|
String |
getStringUnsafe()
|
|
copyToUnsafe(Object ptr, IntNumber length)
|
|
copyTo(system'ByteNumber[] target, IntNumber len)
|
|
copyTo(system'ByteNumber[] target, IntNumber index, IntNumber len)
|
public template UnsafePointer<T1>
| Modifier and Type | Field |
|---|---|
|
_pointer
|
| Modifier and Type | Constructor / Static Method |
|---|---|
UnsafePointer<T1> |
constructor()
|
UnsafePointer<T1> |
constructor(UnsafePointer<T1> ptr)
|
UnsafePointer<T1> |
constructor(UnsafePointer ptr)
|
UnsafePointer<T1> |
constructor(T1 obj)
|
| Modifier and Type | Property |
|---|---|
get T1 |
Value()
|
public singleton UShortConvertor
| Modifier and Type | Method |
|---|---|
UShortNumber |
convert(UShortNumber s)
|
UShortNumber |
convert(ShortNumber s)
|
UShortNumber |
convert(IntNumber n)
|
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 |
MinValue()
Returns the minimal value (0)
|
get UShortNumber |
MaxValue()
Returns the maxial value (65535)
|
get UShortNumber |
Default()
Returns the default value (0)
|
| Modifier and Type | Property |
|---|---|
get UShortNumber |
Negative()
Returns negated value
|
get UShortNumber |
BInverted()
bitwise inversion
|
| 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 |
|---|---|
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 |
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 |
String |
toPrintable()
returns the literal presentation
|
|
add(o)
Returns the sum;
If no appropriate method overloading is found, an argument o is converted to the UShortNumber type |
|
subtract(o)
Returns the difference;
If no appropriate method overloading is found, an argument o is converted to the UShortNumber type |
|
multiply(o)
Returns the product;
If no appropriate method overloading is found, an argument o is converted to the UShortNumber type |
|
divide(o)
Returns the result of integer division;
If no appropriate method overloading is found, an argument o is converted to the UShortNumber type |
|
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 |
|
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 |
|
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 |
add(UShortNumber n)
returns the sum
|
UShortNumber |
subtract(UShortNumber n)
returns the difference
|
UShortNumber |
multiply(UShortNumber n)
returns the product
|
UShortNumber |
divide(UShortNumber n)
returns the result of integer division
|
UShortNumber |
add(ByteNumber n)
returns the sum
|
UShortNumber |
subtract(ByteNumber n)
returns the difference
|
UShortNumber |
multiply(ByteNumber n)
returns the product
|
UShortNumber |
divide(ByteNumber n)
returns the result of integer division
|
IntNumber |
add(IntNumber n)
returns the sum
|
IntNumber |
subtract(IntNumber n)
returns the difference
|
IntNumber |
multiply(IntNumber n)
returns the product
|
IntNumber |
divide(IntNumber n)
returns the result of integer division
|
LongNumber |
add(LongNumber n)
returns the sum
|
LongNumber |
subtract(LongNumber n)
returns the difference
|
LongNumber |
multiply(LongNumber n)
returns the product
|
LongNumber |
divide(LongNumber n)
returns the result of integer division
|
RealNumber |
add(RealNumber n)
returns the sum
|
RealNumber |
subtract(RealNumber n)
returns the difference
|
RealNumber |
multiply(RealNumber n)
returns the product
|
RealNumber |
divide(RealNumber n)
returns the result of integer division
|
UShortNumber |
band(UShortNumber n)
Returns the result of bitwise AND operation
|
UShortNumber |
bor(UShortNumber n)
Returns the result of bitwise OR operation
|
UShortNumber |
bxor(UShortNumber n)
Returns the result of bitwise XOR operation
|
UShortNumber |
band(ByteNumber n)
Returns the result of bitwise AND operation
|
UShortNumber |
bor(ByteNumber n)
Returns the result of bitwise OR operation
|
UShortNumber |
bxor(ByteNumber n)
Returns the result of bitwise XOR operation
|
IntNumber |
band(IntNumber n)
Returns the result of bitwise AND operation
|
IntNumber |
bor(IntNumber n)
Returns the result of bitwise OR operation
|
IntNumber |
bxor(IntNumber n)
Returns the result of bitwise XOR operation
|
LongNumber |
band(LongNumber n)
Returns the result of bitwise AND operation
|
LongNumber |
bor(LongNumber n)
Returns the result of bitwise OR operation
|
LongNumber |
bxor(LongNumber n)
Returns the result of bitwise XOR operation
|
BoolValue |
equal(UShortNumber b)
compares the value
|
BoolValue |
less(UShortNumber b)
compares the value
|
BoolValue |
equal(ByteNumber b)
compares the value
|
BoolValue |
less(ByteNumber b)
compares the value
|
BoolValue |
equal(IntNumber n)
compares the value
|
BoolValue |
less(IntNumber n)
compares the value
|
BoolValue |
equal(LongNumber n)
compares the value
|
BoolValue |
less(LongNumber n)
compares the value
|
BoolValue |
equal(RealNumber n)
compares the value
|
BoolValue |
less(RealNumber n)
compares the value
|
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
|
UShortNumber |
clone()
clones the value
|
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 |
|
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 |
|
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 |
|
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 |
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 |
|---|---|
BoolValue |
equal(p)
Tries to convert p argument to the variant type and check if they are equals
|
String |
toPrintable()
Redirects to the assigned object
|
|
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 |
|
add(p)
Tries to convert p argument to the variant type and returns the sum
|
|
subtract(p)
Tries to convert p argument to the variant type and returns the difference
|
|
multiply(p)
Tries to convert p argument to the variant type and returns the product
|
|
divide(p)
Tries to convert p argument to the variant type and returns the division result
|
public singleton WideConvertor
| Modifier and Type | Method |
|---|---|
WideString |
convert(o)
|
WideString |
convert(CharValue ch)
|
WideString |
convert(ByteNumber b, IntNumber radix)
|
WideString |
convert(IntNumber value, IntNumber radix)
|
WideString |
convert(IntNumber value)
|
WideString |
convert(LongNumber value, IntNumber radix)
|
WideString |
convert(UIntNumber value, IntNumber radix)
|
WideString |
convert(ShortNumber value, IntNumber radix)
|
WideString |
convert(RealNumber value)
|
WideString |
convert(BaseVariable v)
|
WideString |
convert(BaseVariable v, IntNumber radix)
|
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 |
fill(IntNumber size, CharValue ch)
Creates the literal string with specified length size fills with character ch
|
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
|
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 |
|---|---|
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 |
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
|
String |
toPrintable()
Returns UTF-8 copy of the string
|
WideString |
add(o)
|
BoolValue |
equal(WideString s)
Returns true if the string equals to s; otherwise returns false
|
BoolValue |
less(WideString s)
Returns true if the string is less then 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 |
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 |
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 |
add(BaseVariable v)
|
WideString |
add(WideString subs)
Concatinates the values
|
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
|
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
|
WideString |
Substring(IntNumber index, IntNumber length)
Returns the substring from index and with the specified length
|
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)
|
Enumerator<system'CharValue> |
enumerator()
Returns the string enumerator
|
Indexer<system'CharValue> |
indexer()
Returns the string indexer
|
WideString |
clone()
Clones the value
|
| Modifier and Type | Extension Method |
|---|---|
WideString |
Substring(IntNumber index)
Returns a substring starting from index till the end
|
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 |
get property IntNumber |
Hashcode()
Returns the hash code of the string
|
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
|
BoolValue |
startingWith(WideString s)
Returns true if the string starts with the specified string s
|
BoolValue |
endingWith(WideString s)
Returns true if the string ends with the specified string s
|
BoolValue |
containing(WideString s)
Returns true if the string contains the specified string s
|
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
|
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 |
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
|
| Modifier and Type | Name |
public |
CommandLine
|
|---|
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
|
|---|