Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultFunctionCollection

Implements a list filled with standard functions.

Hierarchy

Implements

Index

Constructors

constructor

  • Constructs this list and fills it with the standard functions.

    Returns DefaultFunctionCollection

Accessors

length

  • get length(): number
  • Gets a number of functions stored in the collection.

    Returns number

    a number of stored functions.

Methods

add

Protected checkParamCount

  • checkParamCount(params: Variant[], expectedParamCount: number): void
  • Checks if params contains the correct number of function parameters (must be stored on the top of the params).

    Parameters

    • params: Variant[]

      A list of function parameters.

    • expectedParamCount: number

      The expected number of function parameters.

    Returns void

clear

  • clear(): void

findByName

findIndexByName

  • findIndexByName(name: string): number
  • Finds function index in the list by it's name.

    Parameters

    • name: string

      The function name to be found.

    Returns number

    Function index in the list or -1 if function was not found.

get

getAll

Protected getParameter

  • Parameters

    • params: Variant[]
    • paramIndex: number

    Returns Variant

remove

  • remove(index: number): void
  • Removes a function by its index.

    Parameters

    • index: number

      a index of the function to be removed.

    Returns void

removeByName

  • removeByName(name: string): void

Generated using TypeDoc