Search in sources :

Example 11 with PostfixMathCommandI

use of org.nfunk.jep.function.PostfixMathCommandI in project dhis2-core by dhis2.

the class CustomFunctions method addFunctions.

public static void addFunctions(JEP parser) {
    for (Entry<String, PostfixMathCommandI> e : AGGREGATE_FUNCTIONS.entrySet()) {
        String fname = e.getKey();
        PostfixMathCommandI cmd = e.getValue();
        parser.addFunction(fname, cmd);
    }
}
Also used : PostfixMathCommandI(org.nfunk.jep.function.PostfixMathCommandI)

Aggregations

PostfixMathCommandI (org.nfunk.jep.function.PostfixMathCommandI)11 Stack (java.util.Stack)9 CompareEqualDouble (pcgen.util.testchecker.CompareEqualDouble)3 ParseException (org.nfunk.jep.ParseException)1