-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Description
例如
AlgorithmEngine engine = new AlgorithmEngine();
Operand operand = engine.Evaluate("year(now())");
Object result;
switch (operand.Type()) {
case BOOLEAN: result = operand.BooleanValue();
case ARRARY: result = operand.ArrayValue();
case DATE: result = operand.DateValue();
case JSON: result = operand.JsonValue();
case TEXT: result = operand.TextValue();
case NUMBER: result = operand.NumberValue();
default: result = null;
}
assertEquals(2023, result);
Metadata
Metadata
Assignees
Labels
No labels