WapEvaluator class
Constructors
Properties
- datasetResolver ↔ ExprDataSet? Function(String name)?
-
Sets the external dataset resolver: when an expression encounters 'id.field',
this function is called back to fetch the dataset from the external object list (agp102's dbq object list).
This way the datasets list exists in exactly one place externally; WapEvaluator holds no copy of it.
getter/setter pair
- hasError → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastError ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearDataSets(
) → void -
clearVars(
) → void - Clears all variables (keeps built-in functions)
-
cond(
String expr) → bool - Evaluates a condition expression, returns bool. Returns false on failure.
-
eval(
String expr, {bool nul = false}) → dynamic - Evaluates the expression, returns the result. Returns null on failure and sets lastError.
-
evalNul(
String expr) → dynamic - eval's Null mode (corresponds to Expression(Str, True))
-
getUserVars(
) → Map< String, dynamic> - Gets all user-set variables (of type variable/constant)
-
getVar(
String name) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerDataSet(
String name, ExprDataSet ds) → void -
setRow(
String table, Map< String, dynamic> row) → void - Sets a whole row of data at once (the Map's keys are variable names; supports the 'table.field' format)
-
setVar(
String name, dynamic value) → void -
toString(
) → String -
A string representation of this object.
inherited
-
unregisterDataSet(
String name) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited