class

AxonContext

@Js
abstract class AxonContext : Obj, HaystackContext, CompContext

AxonContext manages the environment of an Axon evaluation

methods call

Lookup and call a function with the given arguments

eval

Evaluate an Axon expression within this context

evalExpr

Evaluate an expression

evalToFunc

Evaluate expression to a function expression

now

CompContext current time

ns

Xeto namespace

parse

Parse Axon expression

stash

Stash allows you to stash objects on the Context object during an Axon evaluation

call 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.

eval Obj? eval(Str src, FileLoc loc := FileLoc.eval)

Evaluate an Axon expression within this context. Convenience for evalExpr(parse(src, loc))

evalExpr Obj? evalExpr(Expr expr)

Evaluate an expression

evalToFunc Fn evalToFunc(Str src)

Evaluate expression to a function expression

now virtual DateTime now()

CompContext current time

ns abstract Namespace ns()

Xeto namespace

parse Expr parse(Str src, FileLoc loc := FileLoc.eval)

Parse Axon expression

stash 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.

Haxall 4.0.6 ∙ 21-Jul-2026 09:48 EDT