Namespace: ExpressionUtils

Oracle® JavaScript Extension Toolkit (JET)
7.1.0

F18183-01

QuickNav


ExpressionUtils

Version:
  • 7.1.0
Since:
  • 6.0.0
Module:
  • ojexpressionutils

Module usage

See JET Module Loading for an overview of module usage within JET.

Javascript Import Format
define(['ojs/ojexpressionutils'], function(ExpressionUtils) {
 // Application should call API on ExpressionUtils 
})
Typescript Import Format
//This namespace exports multiple static methods or members. To import 
import * as ExpressionUtils from "ojexpressionutils";

//Now you can access the methods as ExpressionUtils.methodName and so on

JET In Typescript

A detailed description of working with JET elements and classes in your typescript project can be found at: JET Typescript Usage.

Methods

(static) .createGenericExpressionEvaluator(expressionText) → {(context: any)=> any}

Creates generic expression evaluator
Parameters:
Name Type Description
expressionText string inner expression text not including any decorator characters that identify the string as an expression
Returns:
an evaluator function that will take data context as a parameter
Type
(context: any)=> any

(static) .getExpressionInfo(expression) → {Object}

Analyzes a string for a possible JET expression
Parameters:
Name Type Description
expression string a string to be analyzed
Returns:
an object with two keys: use the 'expr' key to get the expression text, and the 'downstreamOnly' to get a boolean indicating whether the expression is downstream-only, i.e. the flag will be true if the expression should not be used for writeback
Type
{expr: (null|string), downstreamOnly: boolean}