Is looking for a boolean (true/false) at the expression starting at zero-based actual.index
-position.
If the next field is a boolean, adds a boolean-node as children to the actual node. Is not changing the actual node (step in or out). Returns true, if a boolean constant was found at the start-position.
Is looking for a close-bracket at the expression starting at zero-based actual.index
-position.
If the next field is a close-bracket, sets the parent node as actual node (step-out). Returns true, if a close-bracket was found at the start-position.
Is looking for a function at the expression starting at zero-based actual.index
-position.
A function starts with a name, followed by a open-bracket (
, a list of arguments and ends with a close-bracket )
.
If the next field is a function, adds a function-node as children to the actual node. Is not changing the actual node (step in or out). Returns true, if a function was found at the start-position.
Is looking for a number at the expression starting at zero-based actual.index
-position.
A number can start with a letter between 0-9 or dot and ends with a number. A number cannot have spaces either other signes like commas and only one dot.
Valid numbers are:
Converts the number to a floating-point. If the next field is a number, adds a number-node as children to the actual node. Is not changing the actual node (step in or out). Returns true, if a number was found at the start-position.
Is looking for an open-bracket at the expression starting at zero-based actual.index
-position.
If the next field is a bracket, adds a bracket-node as children to the actual node and sets this new bracket-node as actual-node. Returns true, if a open-bracket was found at the start-position.
Is looking for an operator (e.g.: +, -, /, *, >=, <=, &&, ...) at the expression starting at zero-based actual.index
-position.
If the next field is an operator, adds an operator-node as children to the actual node. Is not changing the actual node (step in or out). Returns true, if an operator was found at the start-position.
Is looking for a string at the expression starting at zero-based actual.index
-position.
A string starts with '
and ends with '
. Use escape for using single-quote in string (\'
).
Reads the characters between the start- and end-quote. If the next field is a string, adds a string-node as children to the actual node. Is not changing the actual node (step in or out). Returns true, if a string was found at the start-position.
Removes all stored expression from the storage
Removes the expression of the provided execution-path from the storage.
Executes the provided expression
and returns the result.
The common script-environment will be used, therefore, method setEnvironment
must be called first.
The expression to execute.
A unique key (path to the property), used to identify the expression.
Stores the expression-tree build at first call for later use. Default-value: true
.
Executes the provided expression
and returns the result.
The provided script-environment will be used.
The expression to execute.
A unique key (path to the property), used to identify the expression.
The script-environment to use for this call.
Stores the expression-tree build at first call for later use. Default-value: true
.
Executes the provided expression and tries to convert the result to a boolean.
In case of an error, the error-message will be logged and errorValue
will be returned.
The common script-environment will be used, therefore, method setEnvironment
must be called first.
The expression to execute.
A unique key (path to the property), used to identify the expression.
The value to be returned in case of an error. Default-value: false
.
Stores the expression-tree build at first call for later use. Default-value: true
.
Executes the provided expression and tries to convert the result to a boolean.
In case of an error, the error-message will be logged and errorValue
will be returned.
The provided script-environment will be used.
The expression to execute.
A unique key (path to the property), used to identify the expression.
The script-environment to be used for this call.
The value to be returned in case of an error. Default-value: false
.
Stores the expression-tree build at first call for later use. Default-value: true
.
Executes the provided expression and tries to convert the result to a boolean. In case of an error, the error-message will be logged and the error-value from the expression will be returned.
The common script-environment will be used, therefore, method setEnvironment
must be called first.
The expression to execute. In case of an error, the error-value of expression will be returned. Default-value: false
.
A unique key (path to the property), used to identify the expression.
Stores the expression-tree build at first call for later use. Default-value: true
.
Executes the provided expression and tries to convert the result to a boolean. In case of an error, the error-message will be logged and the error-value from the expression will be returned.
The provided script-environment will be used.
The expression to execute. In case of an error, the error-value of expression will be returned. Default-value: false
.
A unique key (path to the property), used to identify the expression.
The script-environment to be used for this call.
Stores the expression-tree build at first call for later use. Default-value: true
.
Executes the provided expression and tries to convert the result to a number.
In case of an error, the error-message will be logged and errorValue
will be returned.
The common script-environment will be used, therefore, method setEnvironment
must be called first.
The expression to execute.
A unique key (path to the property), used to identify the expression.
The value to be returned in case of an error.
Stores the expression-tree build at first call for later use. Default-value: true
.
Executes the provided expression and tries to convert the result to a number.
In case of an error, the error-message will be logged and errorValue
will be returned.
The provided script-environment will be used.
The expression to execute.
A unique key (path to the property), used to identify the expression.
The script-environment to be used for this call.
The value to be returned in case of an error.
Stores the expression-tree build at first call for later use. Default-value: true
.
Executes the provided expression and tries to convert the result to a number.
In case of an error, the error-message will be logged and expression.errorValue
will be returned. Returns 0, if errorValue is undefined.
The common script-environment will be used, therefore, method setEnvironment
must be called first.
The expression to execute.
A unique key (path to the property), used to identify the expression.
Stores the expression-tree build at first call for later use. Default-value: true
.
Executes the provided expression and tries to convert the result to a number. In case of an error, the error-message will be logged and the error-value from the expression will be returned. Returns 0, if errorValue is undefined.
The provided script-environment will be used.
The expression to execute.
A unique key (path to the property), used to identify the expression.
The script-environment to be used for this call.
Stores the expression-tree build at first call for later use. Default-value: true
.
Executes the provided expression and tries to convert the result to a string.
In case of an error, the error-message will be logged and errorValue
will be returned.
The common script-environment will be used, therefore, method setEnvironment
must be called first.
The expression to execute.
A unique key (path to the property), used to identify the expression.
The value to be returned in case of an error.
Stores the expression-tree build at first call for later use. Default-value: true
.
Executes the provided expression and tries to convert the result to a string.
In case of an error, the error-message will be logged and errorValue
will be returned.
The provided script-environment will be used.
The expression to execute.
A unique key (path to the property), used to identify the expression.
The script-environment to be used for this call.
The value to be returned in case of an error.
Stores the expression-tree build at first call for later use. Default-value: true
.
Executes the provided expression and tries to convert the result to a number.
In case of an error, the error-message will be logged and expression.errorValue
will be returned. Returns ``, if errorValue is undefined.
The common script-environment will be used, therefore, method setEnvironment
must be called first.
The expression to execute.
A unique key (path to the property), used to identify the expression.
Stores the expression-tree build at first call for later use. Default-value: true
.
Executes the provided expression and tries to convert the result to a number. In case of an error, the error-message will be logged and the error-value from the expression will be returned. Returns ``, if errorValue is undefined.
The provided script-environment will be used.
The expression to execute.
A unique key (path to the property), used to identify the expression.
The script-environment to be used for this call.
Stores the expression-tree build at first call for later use. Default-value: true
.
returns the logger for this module. Messages are directly written to the console. If you want to use your own library, like loglevel, replace the logging-methods (debug(), info(), error()) with your own methods.
Returns true, if the execution of the expression belongs to the provided execPath
failed since calls. Stays true, until the expression is executed without error.
The execution-path of the expression. If undefined, returns true if any execution of an expression failed.
Returns true, if the provided expression
is executable.
If expression
is from type string
, expression needs to be surrounded with =[x*y]
.
Sets the environment (context) used for execution of expression, if an environment is not provided at the exection-methods.
Adds a new function. Throws an error if adding function failed.
Function derived from BaseFunction
Generated using TypeDoc
Is looking for an array at the expression starting at zero-based
actual.index
-position. An array starts with[
and ends with]
;,
is used as delimiter between array-items.Items can be from type
Type mismatch is not supported. Empty arrays are allowed.
If the next field is an array, adds a array-node as children to the actual node. Items are added as children to the array-node. Is not changing the actual node (step in or out). Returns true, if an array was found at the start-position.