Why Script.apex?
Script.apex help you run JavaScript code in Apex. Basically, it compiles JavaScript code into semantic nodes, which are then evaluated in native Apex. The JavaScript expression parser in Script.apex is porting from jsep.
Script.apex help you run JavaScript code in Apex. Basically, it compiles JavaScript code into semantic nodes, which are then evaluated in native Apex. The JavaScript expression parser in Script.apex is porting from jsep.
Script.apex parses JavaScript expressions into symantic nodes.
Script.apex evaluates JavaScript expressions to compute the result.
Script.apex caches parsed JavaScript expressions to improve performance.
To evaluate a JavaScript expression in Script.apex, you really need only one API. That's it.
Script.apex evaluates JavaScript expressions to provide dynamic scripting feature to Apex.
Script.apex uses variables from context to provide dynamic evaluations.
Script.apex creates parsed symantic nodes right at your disposal.