- 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
Evaluate an Axon expression within this context
Evaluate an expression
Evaluate expression to a function expression
CompContext current time
Xeto namespace
Parse Axon 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.
Obj? eval(Str src, FileLoc loc := FileLoc.eval)
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, FileLoc loc := FileLoc.eval)
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.