JSEngine class

Constructors

JSEngine(Map<String, dynamic> context)

Properties

context Map<String, dynamic>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

coerceToNumber(dynamic value) int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String code) → void
resolveArrayExpression(ArrayExpression expr) → dynamic
resolveAssignmentExpression(AssignmentExpression expr) → dynamic
resolveBinaryExpression(BinaryExpression expr) → dynamic
resolveCallExpression(CallExpression call) → dynamic
resolveConditionalExpression(ConditionalExpression expr) → dynamic
resolveExpression(Expression expr) → dynamic
resolveForStatement(ForStatement statement) → void
resolveFunctionExpression(FunctionExpression func) → dynamic
resolveIfStatement(IfStatement statement) → void
resolveIndexExpression(IndexExpression expr) → dynamic
resolveLiteralExpression(LiteralExpression expr) → dynamic
resolveMemberExpression(MemberExpression member) → dynamic
resolveNameExpression(NameExpression expr) → dynamic
resolveNode(Node node) → void
resolveRegexpExpression(RegexpExpression expr) → dynamic
resolveSequenceExpression(SequenceExpression expr) → dynamic
resolveStatement(Statement statement) → void
resolveSwitchStatement(SwitchStatement statement) → void
resolveThisExpression() → dynamic
resolveTryStatement(TryStatement statement) → void
resolveUnaryExpression(UnaryExpression expr) → dynamic
resolveUpdateExpression(UpdateExpression expr) → dynamic
resolveVariableDeclaration(VariableDeclaration decls) → void
runStatement(Statement statement) → dynamic
toBoolean(dynamic value) bool
toString() String
A string representation of this object.
inherited
typeof(dynamic value) String

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

run(String code, [List params = const []]) → dynamic
Parses the js code and runs the first function in the code returning the result The params are added to the context to be accessed from the function.