ELENA Standard Library
6.7
system'

AbortException



public class AbortException
An abort exception


system'

Action<T1>



abstract public template Action<T1>
A base strong-typed action with a single argument


system'

Action<T1,T1>



abstract public template Action<T1,T1>
A base strong-typed action with two arguments


system'

Action<T1,T2>



abstract public template Action<T1,T2>
A base strong-typed action with two arguments


system'

Action<T1,T2,T3>



abstract public template Action<T1,T2,T3>
A base strong-typed action with three arguments


system'

Action<T1,T2,T3,T4>



abstract public template Action<T1,T2,T3,T4>
A base strong-typed action with four arguments


system'

Action<T1,T2,T3,T4,T5>



abstract public template Action<T1,T2,T3,T4,T5>
A base strong-typed action with five arguments


system'

Action<T1,T2,T3,T4,T5,T6>



abstract public template Action<T1,T2,T3,T4,T5,T6>
A base strong-typed action with six arguments


system'

Action<T1,T2,T3,T4,T5,T6,T7>



abstract public template Action<T1,T2,T3,T4,T5,T6,T7>
A base strong-typed action with seven arguments


system'

Action<T1,T2,T3,T4,T5,T6,T7,T8>



abstract public template Action<T1,T2,T3,T4,T5,T6,T7,T8>
A base strong-typed action with eight arguments


system'

Action<T1,T2,T3,T4,T5,T6,T7,T8,T9>



abstract public template Action<T1,T2,T3,T4,T5,T6,T7,T8,T9>
A base strong-typed action with nine arguments


system'

Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>



abstract public template Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>
A base strong-typed action with ten arguments


system'

Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>



abstract public template Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>
A base strong-typed action with eleven arguments


system'

Array



public class Array
A generic array


system'

Array<T1>



public template Array<T1>
A strong-typed array template


system'

ArrayEnumerator



public class ArrayEnumerator
A generic array enumerator


system'

ArrayIndexer



public class ArrayIndexer
A generic array indexer


system'

BaseEnumerator



abstract public class BaseEnumerator
A base generic enumerator for a collection or an array
Property getter Value must be implemented

  • Method Summary

    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

system'

BaseEnumerator<T1>



abstract public template BaseEnumerator<T1>
A base enumerator template for a collection or an array
Property getter Value must be implemented

  • Conversion Summary

    Modifier and Type Conversion Method
    Enumerator cast()
    Returns a wrapper implementing a generic enumerator
  • Method Summary

    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

system'

BaseExtender



public class BaseExtender
A base mixing.
The class must be inherited to extend the target object with extra methods

  • Field Summary

    Modifier and Type Field
    Object object
  • Method Summary

    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

system'

BaseIndexer



abstract public class BaseIndexer
A base generic indexer for a collection or an array
Property Value must be implemented

  • Property Summary

    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
  • Method Summary

    Modifier and Type Method
    appendIndex(IntNumber disp)
    Increases the field index by a value of **disp**

system'

BaseIndexer<T1>



abstract public template BaseIndexer<T1>
A base indexer template for a collection or an array
Property Value must be implemented

  • Property Summary

    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
  • Conversion Summary

    Modifier and Type Conversion Method
    Indexer cast()
    Returns a wrapper implementing a generic indexer
  • Method Summary

    Modifier and Type Method
    appendIndex(IntNumber offs)
    Increases the field index by a value of **disp**

system'

BaseLazyExpression



abstract public class BaseLazyExpression

  • Method Summary

    Modifier and Type Method
    dispatch()
    abstract   function()
    An expression code
    Must be overridden

system'

BaseNumber



abstract public class BaseNumber
a base numeric value

  • Property Summary

    Modifier and Type Property
    get   Negative()
    Returns the negative value of a number
  • Method Summary

    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

system'

BaseValue



abstract public class BaseValue
a base value

  • Method Summary

    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

system'

BaseVariable



abstract public class BaseVariable
a variable base class

  • Property Summary

    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

system'

BitArray



public class BitArray
An array of Boolean values

  • Constructor Summary

    Modifier and Type Constructor / Static Method
    BitArray allocate(IntNumber length)
    Creates a bit array with the specified length
  • Property Summary

    Modifier and Type Property
    get  IntNumber Length()
    Returns the bit array length

system'

BitArray32



public class BitArray32
An 32-bit integer bit map

  • Field Summary

    Modifier and Type Field
    IntNumber _value
  • Constructor Summary

    Modifier and Type Constructor / Static Method
    BitArray32 load(IntNumber value)
    Creates a bit map from value
  • Property Summary

    Modifier and Type Property
    get  IntNumber Length()
    Returns 32

system'

BoolValue



abstract public class BoolValue
a common boolean value

  • Static Property Summary

    Modifier and Type Static Property
    get  BoolValue MinValue()
    Returns the default value
    get  BoolValue true()
    Returns true value
    get  BoolValue false()
    Returns false value.
  • Property Summary

    Modifier and Type Property
    get abstract  BoolValue Inverted()
    Inverts the value;
    has to be implemented
  • Method Summary

    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

system'

BoolValue#false



public singleton BoolValue#false

  • Property Summary

    Modifier and Type Property
    get  BoolValue Inverted()
    Always returns true
  • Method Summary

    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()

system'

BoolValue#true



public singleton BoolValue#true

  • Property Summary

    Modifier and Type Property
    get  BoolValue Inverted()
    Always returns false.
  • Method Summary

    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()

system'

ByteArrayConvertor



public singleton ByteArrayConvertor


system'

ByteConvertor



public singleton ByteConvertor


system'

ByteNumber



public class ByteNumber
an unsigned 8 bit integer

  • Field Summary

    Modifier and Type Field
    _value
  • Constructor Summary

    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
  • Static Property Summary

    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)
  • Property Summary

    Modifier and Type Property
    get  ByteNumber BInverted()
    bitwise inversion
  • Conversion Summary

    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
  • Extension Summary

    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

system'

CallStack



public class CallStack
A call stack

  • Constructor Summary

    Modifier and Type Constructor / Static Method
    CallStack constructor()
    CallStack constructor(IntNumber trimingLevel)
  • Method Summary

    Modifier and Type Method
    String toPrintable()
    Generates the call stack literal representation

system'

CharConvertor



public singleton CharConvertor


system'

CharValue



public class CharValue
An UTF-32 character symbol

  • Field Summary

    Modifier and Type Field
    _value
  • Constructor Summary

    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
  • Static Property Summary

    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)
  • Property Summary

    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
  • Conversion Summary

    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
  • Method Summary

    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
  • Extension Summary

    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

system'

ClassReference



public class ClassReference

  • Field Summary

    Modifier and Type Field
    pointer
  • Constructor Summary

    Modifier and Type Constructor / Static Method
    ClassReference constructor(String name)
    Loads a symbol
  • Method Summary

    Modifier and Type Method
    dispatch()

system'

Console



public singleton Console

  • Property Summary

    Modifier and Type Property
    get  BoolValue KeyAvailable()
  • Method Summary

    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.

system'

ConsoleHelperImpl



public class ConsoleHelperImpl

  • Property Summary

    Modifier and Type Property
    get  BoolValue KeyAvailable()
  • Method Summary

    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.

system'

COORD



public class COORD

  • Constructor Summary

    Modifier and Type Constructor / Static Method
    COORD constructor()

system'

CriticalException



public class CriticalException

  • Constructor Summary

    Modifier and Type Constructor / Static Method
    CriticalException new()

system'

DivisionByZeroException



public class DivisionByZeroException


system'

Enumerable



abstract public class Enumerable
An abstract generic enumerable class
Must be overridden

  • Method Summary

    Modifier and Type Method
    abstract  Enumerator enumerator()
    Returns the generic enumerator of the class

system'

Enumerable<T1>



abstract public template Enumerable<T1>
An abstract strong-typed enumerable class
Must be overridden

  • Method Summary

    Modifier and Type Method
    abstract  Enumerator<T1> enumerator()
    Returns the strong-typed enumerator of the class

system'

Enumerator



abstract public class Enumerator
A generic enumerator interface

  • Property Summary

    Modifier and Type Property
    get abstract   Value()
    Returns the current object
  • Method Summary

    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

system'

Enumerator<T1>



abstract public template Enumerator<T1>
A strong-typed enumerator template

  • Property Summary

    Modifier and Type Property
    get abstract  T1 Value()
    Returns the current object
  • Conversion Summary

    Modifier and Type Conversion Method
    abstract  Enumerator cast()
    converts the class to the generic enumerator
  • Method Summary

    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()

system'

Exception



public class Exception
A basic exception

  • Static Method Summary

    Modifier and Type Constructor / Static Method
    raise()
    raise(String message)
  • Property Summary

    Modifier and Type Property
    get  String Message()
  • Method Summary

    Modifier and Type Method
    String toPrintable()
    Returns the message and the call stack
    on(handler)
    fallback(arg)
    raise()

system'

Extension



public class Extension

  • Field Summary

    Modifier and Type Field
    Object target
    Object extender
  • Constructor Summary

    Modifier and Type Constructor / Static Method
    Extension constructor(target, extender)
  • Method Summary

    Modifier and Type Method
    dispatch()

system'

ExtensionMessage



public class ExtensionMessage
An extended message constant

  • Field Summary

    Modifier and Type Field
    value
  • Method Summary

    Modifier and Type Method
    dispatch()
    Dequalifies incoming messages if they are equal to its value and redirects to the target

system'

ExtensionVariable



public class ExtensionVariable

  • Field Summary

    Modifier and Type Field
    Object target
    Object extension
  • Constructor Summary

    Modifier and Type Constructor / Static Method
    ExtensionVariable constructor(target, extension)
  • Method Summary

    Modifier and Type Method
    dispatch()

system'

FormatException



public class FormatException


system'

Func



abstract public class Func
A base weak action without arguments

  • Method Summary

    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

system'

Func<T1>



abstract public template Func<T1>
A base strong-typed function without arguments

  • Method Summary

    Modifier and Type Method
    abstract  T1 function()
    A function code
    Must be overridden

system'

Func<T1,T1,system'IntNumber>



abstract public template Func<T1,T1,system'IntNumber>
A base strong-typed function with two arguments

  • Method Summary

    Modifier and Type Method
    abstract  IntNumber function(T1 arg1, T1 arg2)
    A function code
    Must be overridden

system'

Func<T1,T2>



abstract public template Func<T1,T2>
A base strong-typed function with a single argument

  • Method Summary

    Modifier and Type Method
    abstract  T2 function(T1 arg)
    A function code
    Must be overridden

system'

Func<T1,T2,T3>



abstract public template Func<T1,T2,T3>
A base strong-typed function with two arguments

  • Method Summary

    Modifier and Type Method
    abstract  T3 function(T1 arg1, T2 arg2)
    A function code
    Must be overridden

system'

Func<T1,T2,T3,T4>



abstract public template Func<T1,T2,T3,T4>
A base strong-typed function with three arguments

  • Method Summary

    Modifier and Type Method
    abstract  T4 function(T1 arg1, T2 arg2, T3 arg3)
    A function code
    Must be overridden

system'

Func<T1,T2,T3,T4,T5>



abstract public template Func<T1,T2,T3,T4,T5>
A base strong-typed function with four arguments

  • Method Summary

    Modifier and Type Method
    abstract  T5 function(T1 arg1, T2 arg2, T3 arg3, T4 arg4)
    A function code
    Must be overridden

system'

Func<T1,T2,T3,T4,T5,T6>



abstract public template Func<T1,T2,T3,T4,T5,T6>
A base strong-typed function with five arguments

  • Method Summary

    Modifier and Type Method
    abstract  T6 function(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
    A function code
    Must be overridden

system'

Func<T1,T2,T3,T4,T5,T6,T7>



abstract public template Func<T1,T2,T3,T4,T5,T6,T7>
A base strong-typed function with six arguments

  • Method Summary

    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

system'

Func<T1,T2,T3,T4,T5,T6,T7,T8>



abstract public template Func<T1,T2,T3,T4,T5,T6,T7,T8>
A base strong-typed function with seven arguments

  • Method Summary

    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

system'

Func<T1,T2,T3,T4,T5,T6,T7,T8,T9>



abstract public template Func<T1,T2,T3,T4,T5,T6,T7,T8,T9>
A base strong-typed function with eight arguments

  • Method Summary

    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

system'

Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>



abstract public template Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>

  • Method Summary

    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

system'

Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>



abstract public template Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>
A base strong-typed function with ten arguments

  • Method Summary

    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)

system'

Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>



abstract public template Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>
A base strong-typed function with eleven arguments

  • Method Summary

    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

system'

Func1



abstract public class Func1
A base weak action with a single argument

  • Method Summary

    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

system'

Func10



abstract public class Func10
A base weak action with ten arguments

  • Method Summary

    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

system'

Func11



abstract public class Func11
A base weak action with eleven arguments

  • Method Summary

    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

system'

Func2



abstract public class Func2
A base weak action with two arguments

  • Method Summary

    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

system'

Func3



abstract public class Func3
A base weak action with three arguments

  • Method Summary

    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 as first two argument until it returns true

system'

Func4



abstract public class Func4
A base weak action with four arguments

  • Method Summary

    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

system'

Func5



abstract public class Func5
A base weak action with five arguments

  • Method Summary

    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

system'

Func6



abstract public class Func6
A base weak action with six arguments

  • Method Summary

    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

system'

Func7



abstract public class Func7
A base weak action with seven arguments

  • Method Summary

    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

system'

Func8



abstract public class Func8
A base weak action with eight arguments

  • Method Summary

    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

system'

Func9



abstract public class Func9
A base weak action with nine arguments

  • Method Summary

    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

system'

Handle



public class Handle

  • Field Summary

    Modifier and Type Field
    _value
  • Static Property Summary

    Modifier and Type Static Property
    get  Handle Default()
  • Method Summary

    Modifier and Type Method
    BoolValue isUnassigned()

system'

IConsoleReader



abstract public class IConsoleReader

  • Property Summary

    Modifier and Type Property
    get abstract  BoolValue KeyAvailable()
  • Method Summary

    Modifier and Type Method
    abstract  String readLine()
    abstract  WideString readWideLine()
    abstract  CharValue read()

system'

IConsoleWriter



abstract public class IConsoleWriter

  • Method Summary

    Modifier and Type Method
    abstract   write(WideString s)
    abstract   write(String s)
    abstract   clear()
    abstract   setCursorPosition(IntNumber x, IntNumber y)
    abstract   refresh()

system'

Indexable



abstract public class Indexable
An abstract generic indexable class
Must be overridden

  • Method Summary

    Modifier and Type Method
    abstract  Indexer indexer()
    Returns the generic indexer of the class

system'

Indexable<T1>



abstract public template Indexable<T1>
An abstract strong-typed indexable class
Must be overridden

  • Method Summary

    Modifier and Type Method
    abstract  Indexer<T1> indexer()
    Returns the strong-typed indexer of the class

system'

Indexer



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

  • Property Summary

    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
  • Method Summary

    Modifier and Type Method
    abstract   appendIndex(IntNumber index)
    Increases the current index by parameter **index**

system'

Indexer<T1>



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

  • Property Summary

    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
  • Conversion Summary

    Modifier and Type Conversion Method
    abstract  Indexer cast()
    Converts the object to a generic indexer
  • Method Summary

    Modifier and Type Method
    abstract   appendIndex(IntNumber index)
    Increases the current index by parameter **index**

system'

IntBaseNumber



abstract public class IntBaseNumber
a base integer value

  • Property Summary

    Modifier and Type Property
    get abstract   BInverted()
    Returns a bitwise inverted value
  • Method Summary

    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

system'

IntConvertor



public singleton IntConvertor


system'

IntMatrix



public class IntMatrix
A two-dimensional array of integers

  • Constructor Summary

    Modifier and Type Constructor / Static Method
    IntMatrix allocate(IntNumber rows, IntNumber columns)
    Creates a two-dimensional array of rows and columns
  • Property Summary

    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
  • Method Summary

    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

system'

IntNumber



public class IntNumber
A signed 32 bit integer

  • Field Summary

    Modifier and Type Field
    __int[4] _value
  • Static Property Summary

    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)
  • Property Summary

    Modifier and Type Property
    get  IntNumber Negative()
    Returns the negated value
    get  IntNumber BInverted()
    Bitwise inversion
  • Conversion Summary

    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
  • Extension Summary

    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

system'

InvalidArgumentException



public class InvalidArgumentException


system'

InvalidOperationException



public class InvalidOperationException


system'

KeyValue



public class KeyValue
A key - value pair
Extends the object with a key property

  • Field Summary

    Modifier and Type Field
    Object key
    Object value
  • Constructor Summary

    Modifier and Type Constructor / Static Method
    KeyValue new(key, value)
    Creates a new key-value pair
  • Property Summary

    Modifier and Type Property
    get   Key()
    Returns the key
    get   Value()
    Returns the value
    set   Value(value)
    Set the key
  • Method Summary

    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

system'

LongConvertor



public singleton LongConvertor


system'

LongNumber



public class LongNumber
A signed 64 bit integer value

  • Field Summary

    Modifier and Type Field
    _value
  • Static Property Summary

    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)
  • Property Summary

    Modifier and Type Property
    get  LongNumber Negative()
    Returns the negated value
    get  LongNumber BInverted()
    Bitwise inversion
  • Conversion Summary

    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
  • Extension Summary

    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

system'

Matrix<T1>



public template Matrix<T1>
A two-dimensional strong-type array

  • Constructor Summary

    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
  • Property Summary

    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
  • Method Summary

    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

system'

Message



public class Message
A message constant

  • Field Summary

    Modifier and Type Field
    value
  • Constructor Summary

    Modifier and Type Constructor / Static Method
    Message constructor(String name)
    Loads the message with the specified name
  • Static Property Summary

    Modifier and Type Static Property
    get  Message Default()
    Returns a default value
  • Property Summary

    Modifier and Type Property
    get  MessageName MessageName()
    Returns true if the message name
  • Method Summary

    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

system'

MessageLoaderException



public class MessageLoaderException


system'

MessageName



public class MessageName
A message name constant

  • Field Summary

    Modifier and Type Field
    value
  • Static Property Summary

    Modifier and Type Static Property
    get  MessageName Default()
    Returns a default value
  • Property Summary

    Modifier and Type Property
    get  Message VariadicMessage()
    Returns a variadic message
  • Method Summary

    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

system'

MethodNotFoundException



public class MethodNotFoundException


system'

MssgConvertor



public singleton MssgConvertor

  • Method Summary

    Modifier and Type Method
    convert(IntNumber n, ref Message retVal)
    Message convert(IntNumber n)
    Converting int value to the string
    NOTE : unsafe operation

system'

NilReferenceException



public class NilReferenceException


system'

NilValue



public singleton NilValue
A nil value

  • Method Summary

    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

system'

NotSupportedException



public class NotSupportedException


system'

Object



public class Object
a common ancestor

  • Constructor Summary

    Modifier and Type Constructor / Static Method
    Object constructor()
    Creates an object
  • Method Summary

    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
  • Extension Summary

    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

system'

OutOfMemoryException



public class OutOfMemoryException


system'

OutOfRangeException



public class OutOfRangeException


system'

PropertyMessageName



public class PropertyMessageName
A property name constant

  • Field Summary

    Modifier and Type Field
    value
  • Static Property Summary

    Modifier and Type Static Property
    get  MessageName Default()
    Returns a default value
  • Method Summary

    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

system'

Range



public class Range
represents a range that has start and end indexes.
The class support Enumerable interface

  • Constructor Summary

    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
  • Property Summary

    Modifier and Type Property
    get  IntNumber Length()
    returns the length of the range
  • Conversion Summary

    Modifier and Type Conversion Method
    Enumerable cast()
    Returns a wrapper implementing a generic enumerator

system'

RealConvertor



public singleton RealConvertor


system'

RealMatrix



public class RealMatrix
A two-dimensional array of real numbers

  • Constructor Summary

    Modifier and Type Constructor / Static Method
    RealMatrix allocate(IntNumber rows, IntNumber columns)
    Creates a two-dimensional array of rows and columns
  • Property Summary

    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
  • Method Summary

    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

system'

RealNumber



public class RealNumber
A 64bit float numeric value

  • Field Summary

    Modifier and Type Field
    _value
  • Static Property Summary

    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
  • Property Summary

    Modifier and Type Property
    get  RealNumber Negative()
    Negates the value
  • Extension Summary

    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

system'

Reference<T1>



public template Reference<T1>
a variable template

  • Field Summary

    Modifier and Type Field
    T1 value
  • Constructor Summary

    Modifier and Type Constructor / Static Method
    Reference<T1> constructor(T1 val)
    Initializes a variable
  • Property Summary

    Modifier and Type Property
    get  T1 Value()
    Returns the variable value
    set   Value(T1 val)
    Set the variable value
  • Conversion Summary

    Modifier and Type Conversion Method
    T1 cast()
    Returns the variable value
  • Method Summary

    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()

system'

SByteConvertor



public singleton SByteConvertor


system'

SByteNumber



public class SByteNumber
a signed 8 bit integer

  • Field Summary

    Modifier and Type Field
    _value
  • Constructor Summary

    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
  • Static Property Summary

    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
  • Property Summary

    Modifier and Type Property
    get  SByteNumber BInverted()
    bitwise inversion
  • Conversion Summary

    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

system'

ShortArrayConvertor



public singleton ShortArrayConvertor


system'

ShortConvertor



public singleton ShortConvertor


system'

ShortNumber



public class ShortNumber
a signed 16 bit integer

  • Field Summary

    Modifier and Type Field
    _value
  • Static Property Summary

    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)
  • Property Summary

    Modifier and Type Property
    get  ShortNumber Negative()
    Returns negated value
    get  ShortNumber BInverted()
    bitwise inversion
  • Conversion Summary

    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
  • Extension Summary

    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

system'

SMALL_RECT



public class SMALL_RECT

  • Method Summary

    Modifier and Type Method
    write(SMALL_RECT r)

system'

StackOverflowException



public class StackOverflowException

  • Method Summary

    Modifier and Type Method
    String toPrintable()

system'

StartUpEvents



public class StartUpEvents

  • Constructor Summary

    Modifier and Type Constructor / Static Method
    internal  StartUpEvents new()
  • Method Summary

    Modifier and Type Method
    internal   stopping()
    internal   handlingError(e)

system'

String



public class String
A UTF-8 literal value

  • Field Summary

    Modifier and Type Field
    array
  • Static Method Summary

    Modifier and Type Constructor / Static Method
    dispatch()
  • Static Property Summary

    Modifier and Type Static Property
    get  String MinValue()
    Returns an empty string
  • Property Summary

    Modifier and Type Property
    get  IntNumber Length()
    Returns the string length
  • Method Summary

    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
  • Extension Summary

    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

system'

StringConvertor



public singleton StringConvertor


system'

Symbol



public class Symbol

  • Field Summary

    Modifier and Type Field
    pointer
  • Static Method Summary

    Modifier and Type Constructor / Static Method
    Symbol tryLoad(String ns, String name)
  • Static Property Summary

    Modifier and Type Static Property
    get  Symbol Default()

system'

SymbolLoaderException



public class SymbolLoaderException


system'

TypeLoaderException



public class TypeLoaderException


system'

UIntConvertor



public singleton UIntConvertor


system'

UIntNumber



public class UIntNumber
A unsigned 32 bit integer

  • Field Summary

    Modifier and Type Field
    _value
  • Static Property Summary

    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)
  • Property Summary

    Modifier and Type Property
    get  UIntNumber BInverted()
    Bitwise inversion
  • Conversion Summary

    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
  • Extension Summary

    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

system'

UnsafeArray



public class UnsafeArray

  • Field Summary

    Modifier and Type Field
    _pointer

system'

UnsafePointer



public class UnsafePointer

  • Field Summary

    Modifier and Type Field
    _pointer
  • Static Property Summary

    Modifier and Type Static Property
    get  UnsafePointer Default()

system'

UnsafePointer<T1>



public template UnsafePointer<T1>

  • Field Summary

    Modifier and Type Field
    _pointer
  • Property Summary

    Modifier and Type Property
    get  T1 Value()
  • Method Summary

    Modifier and Type Method
    copyTo(T1 value, IntNumber size)

system'

UShortConvertor



public singleton UShortConvertor


system'

UShortNumber



public class UShortNumber
an unsigned 16 bit integer

  • Field Summary

    Modifier and Type Field
    _value
  • Static Property Summary

    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)
  • Property Summary

    Modifier and Type Property
    get  UShortNumber Negative()
    Returns negated value
    get  UShortNumber BInverted()
    bitwise inversion
  • Conversion Summary

    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

system'

Variable



public class Variable
A generic variable.
Extends an assigned value with compound operators : append (+=), reduce (-=), multiplyBy (*=) and divideBy (/=)

  • Field Summary

    Modifier and Type Field
    Object value
  • Constructor Summary

    Modifier and Type Constructor / Static Method
    Variable constructor(value)
    Creates the variable
    Variable constructor()
    Creates the empty variable
  • Method Summary

    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

system'

Variant



public class Variant
A basic type variant class

  • Field Summary

    Modifier and Type Field
    Object value
  • Constructor Summary

    Modifier and Type Constructor / Static Method
    Variant constructor(object)
    Creates a variant object and assigns it with object
  • Conversion Summary

    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
  • Method Summary

    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

system'

WideConvertor



public singleton WideConvertor


system'

WideString



public class WideString
A UTF-16 literal value

  • Field Summary

    Modifier and Type Field
    array
  • Static Property Summary

    Modifier and Type Static Property
    get  WideString MinValue()
    Returns an empty string
  • Property Summary

    Modifier and Type Property
    get  IntNumber Length()
    Returns the string length
  • Method Summary

    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
  • Extension Summary

    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

system'

CommandLine





  • Symbol Summary

    Modifier and Type Name
    public   CommandLine

system'

console






system'

E_value



E constant

  • Symbol Summary

    Modifier and Type Name
    public  RealNumber E_value
    E constant

system'

EmptyString



Empty string constant

  • Symbol Summary

    Modifier and Type Name
    public  String EmptyString
    Empty string constant

system'

emptyString



obsolete : Empty string constant
Please use EmptyString

  • Symbol Summary

    Modifier and Type Name
    public  String emptyString
    obsolete : Empty string constant
    Please use EmptyString

system'

EmptyWideString



Empty string constant

  • Symbol Summary

    Modifier and Type Name
    public  WideString EmptyWideString
    Empty string constant

system'

emptyWideString



obsolete : Empty string constant
Please use EmptyWideString

  • Symbol Summary

    Modifier and Type Name
    public  WideString emptyWideString
    obsolete : Empty string constant
    Please use EmptyWideString

system'

false



false boolean value

  • Symbol Summary

    Modifier and Type Name
    public  BoolValue#false false
    false boolean value

system'

NewLineConstant



New line characters

  • Symbol Summary

    Modifier and Type Name
    public  String NewLineConstant
    New line characters

system'

nilValue



obsolete : A nil value
Please use NilValue

  • Symbol Summary

    Modifier and Type Name
    public   nilValue
    obsolete : A nil value
    Please use NilValue

system'

Pi_value



Pi constant

  • Symbol Summary

    Modifier and Type Name
    public  RealNumber Pi_value
    Pi constant

system'

startUpEvents





  • Symbol Summary

    Modifier and Type Name
    public  StartUpEvents startUpEvents

system'

true



true boolean value

  • Symbol Summary

    Modifier and Type Name
    public  BoolValue#true true
    true boolean value

ELENA Standard Library
6.7