2022 April Release

Interface CooExpression Permanent link for this heading

This interface describes methods available when working with expressions.

Methods Permanent link for this heading

Return Type

Signature

string

Compile(
  optional integer flags)

any[]

Evaluate(
  transaction transaction,
  optional any[] globalscopelist,
  optional any[] localscopelist,
  optional integer flags,
  optional object object,
  optional object context,
  optional object typeorattributedefinition)

any[]

Evaluate3(
  transaction transaction,
  optional any[] globalscopelist,
  optional any[] localscopelist,
  optional integer flags,
  optional object object)

integer

GetToken(
  integer inx)

integer

GetTokenCount()

any

GetTokenValue(
  integer inx)

void

Prepare(
  transaction transaction,
  optional any[] globalscopelist,
  optional any[] localscopelist,
  optional integer flags,
  optional object object,
  optional object context)

string

Recreate(
  optional integer flags)

Methods Permanent link for this heading


Compile Permanent link for this heading

Comiles an expression to a string.

string Compile(
  optional integer flags)

Name

Description

flags


Evaluate Permanent link for this heading

Evaluates the expression.

any[] Evaluate(
  transaction transaction,
  optional any[] globalscopelist,
  optional any[] localscopelist,
  optional integer flags,
  optional object object,
  optional object context,
  optional object typeorattributedefinition)

Name

Description

transaction

globalscopelist

localscopelist

flags

object

context

typeorattributedefinition


Evaluate3 Permanent link for this heading

Evaluates the expression.

any[] Evaluate3(
  transaction transaction,
  optional any[] globalscopelist,
  optional any[] localscopelist,
  optional integer flags,
  optional object object)

Name

Description

transaction

globalscopelist

localscopelist

flags

object


GetToken Permanent link for this heading

Retrieves a token.

integer GetToken(
  integer inx)

Name

Description

inx


GetTokenCount Permanent link for this heading

Retrieves the number of tokens.

integer GetTokenCount()


GetTokenValue Permanent link for this heading

Retrieves the value of a constant or identifier token.

any GetTokenValue(
  integer inx)

Name

Description

inx


Prepare Permanent link for this heading

Prepares the expression.

void Prepare(
  transaction transaction,
  optional any[] globalscopelist,
  optional any[] localscopelist,
  optional integer flags,
  optional object object,
  optional object context)

Name

Description

transaction

globalscopelist

localscopelist

flags

Possible flags: COORF_NORMAL, COORF_DEFAULT

object

context


Recreate Permanent link for this heading

Recreates the source code of an expression.

string Recreate(
  optional integer flags)

Name

Description

flags