as2fm.as2fm_common.ecmascript_interpretation

Module for interpreting ecmascript.

Functions

has_array_access(expr, elem)

Evaluate if an ECMAscript expression contains access to an array element.

has_member_access(expr, elem)

Evaluate if an ECMAscript expression contains access to an member element.

has_operators(expr, elem)

Evaluate if an ECMAscript expression contains unary, binary, logical or function operators.

interpret_ecma_script_expr(expr[, ...])

Interpret the ECMA script expression and return the resulting value.

is_literal(expr, elem)

Evaluate if the expression contains only a literal (or an array expression).

parse_expression_to_ast(expression, elem)

Parse the string using esprima.

split_by_access(expr, elem)

Expand a Member expression into a list, distinguishing between member and array accesses.

Classes

ArrayAccess()

Placeholder type for ArrayAccess operator call in expanded Member expression.

Exceptions

MemberAccessCheckException

Exception type thrown when there are error expanding a Member expression.