Class Expression

java.lang.Object
com.hypixel.hytale.server.npc.util.expression.Expression

public class Expression extends Object
Simple JavaScript-style expression evaluation.

Supports strong type checking (currently Numbers, Boolean and Strings). Supports compilation to list/arrays of instructions (which are Consumer like objects) executed on a stack machine. Supports scopes/symbol tables with functions and variables. Symbols can be resolved to Suppliers when compiling so that further lookup into symbol table can be avoided (improving performance when expression is always executed within te same object context).