- Index
- »
- fan.axon
- »
- AxonContext
AxonContext
@Js
abstract class AxonContext : Obj, HaystackContext, CompContext
AxonContext manages the environment of an Axon evaluation
Lookup and call a function with the given arguments
Definition namespace
Evaluate an Axon expression within this context
Xeto namespace
Evaluate expression to a function expression
CompContext current time
Parse Axon expression
Evaluate an expression
Stash allows you to stash objects on the Context object during an Axon evaluation
Obj? call(Str funcName, Obj?[] args)
Lookup and call a function with the given arguments. The arguments must be fully evaluated values such as Numbers, Dicts, Grids, etc.
abstract DefNamespace defs()
Definition namespace
Obj? eval(Str src, Loc loc)
Evaluate an Axon expression within this context. Convenience for evalExpr(parse(src, loc))
Obj? evalExpr(Expr expr)
Evaluate an expression
Fn evalToFunc(Str src)
Evaluate expression to a function expression
virtual DateTime now()
CompContext current time
abstract Namespace ns()
Xeto namespace
Expr parse(Str src, Loc loc)
Parse Axon expression
Str:Obj? stash()
Stash allows you to stash objects on the Context object during an Axon evaluation. You should scope your string keys with your pod name to avoid naming collisions.