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

defs

Definition namespace

eval

Evaluate an Axon expression within this context

ns

Xeto namespace

evalToFunc

Evaluate expression to a function expression

now

CompContext current time

parse

Parse Axon expression

evalExpr

Evaluate an 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.

defs abstract DefNamespace defs()

Definition namespace

eval Obj? eval(Str src, Loc loc)

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, Loc loc)

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.5 ∙ 24-Feb-2026 14:33 EST