Search in sources :

Example 1 with SeqMaxFunction

use of com.googlecode.aviator.runtime.function.seq.SeqMaxFunction in project aviatorscript by killme2008.

the class AviatorEvaluatorInstance method loadSeqFunctions.

private void loadSeqFunctions() {
    addFunction(SeqCollectorFunction.INSTANCE);
    addFunction(SeqCollectorRawFunction.INSTANCE);
    addFunction(SeqKeysFunction.INSTANCE);
    addFunction(SeqValsFunction.INSTANCE);
    addFunction(SeqReverseFunction.INSTANCE);
    addFunction(SeqZipmapFunction.INSTANCE);
    addFunction(new SeqNewArrayFunction());
    addFunction(new SeqArrayFunction());
    addFunction(new SeqNewListFunction());
    addFunction(new SeqNewMapFunction());
    addFunction(new SeqNewSetFunction());
    addFunction(new SeqMapEntryFunction());
    addFunction(new SeqIntoFunction());
    addFunction(new SeqAddFunction());
    addFunction(new SeqRemoveFunction());
    addFunction(new SeqGetFunction());
    addFunction(new SeqPutFunction());
    addFunction(new SeqMinFunction());
    addFunction(new SeqMaxFunction());
    addFunction(new SeqMapFunction());
    addFunction(new SeqReduceFunction());
    addFunction(new SeqFilterFunction());
    addFunction(new SeqSortFunction());
    addFunction(new SeqIncludeFunction());
    addFunction(new SeqContainsKeyFunction());
    addFunction(new SeqCountFunction());
    addFunction(new SeqEveryFunction());
    addFunction(new SeqNotAnyFunction());
    addFunction(new SeqSomeFunction());
    addFunction(new SeqMakePredicateFunFunction("seq.eq", OperatorType.EQ));
    addFunction(new SeqMakePredicateFunFunction("seq.neq", OperatorType.NEQ));
    addFunction(new SeqMakePredicateFunFunction("seq.lt", OperatorType.LT));
    addFunction(new SeqMakePredicateFunFunction("seq.le", OperatorType.LE));
    addFunction(new SeqMakePredicateFunFunction("seq.gt", OperatorType.GT));
    addFunction(new SeqMakePredicateFunFunction("seq.ge", OperatorType.GE));
    addFunction(new SeqCompsitePredFunFunction("seq.and", LogicOp.AND));
    addFunction(new SeqCompsitePredFunFunction("seq.or", LogicOp.OR));
    addFunction(new SeqMakePredicateFunFunction("seq.true", OperatorType.EQ, AviatorBoolean.TRUE));
    addFunction(new SeqMakePredicateFunFunction("seq.false", OperatorType.EQ, AviatorBoolean.FALSE));
    addFunction(new SeqMakePredicateFunFunction("seq.nil", OperatorType.EQ, AviatorNil.NIL));
    addFunction(new SeqMakePredicateFunFunction("seq.exists", OperatorType.NEQ, AviatorNil.NIL));
}
Also used : SeqNewArrayFunction(com.googlecode.aviator.runtime.function.seq.SeqNewArrayFunction) SeqMapEntryFunction(com.googlecode.aviator.runtime.function.seq.SeqMapEntryFunction) SeqMaxFunction(com.googlecode.aviator.runtime.function.seq.SeqMaxFunction) SeqFilterFunction(com.googlecode.aviator.runtime.function.seq.SeqFilterFunction) SeqReduceFunction(com.googlecode.aviator.runtime.function.seq.SeqReduceFunction) SeqNotAnyFunction(com.googlecode.aviator.runtime.function.seq.SeqNotAnyFunction) SeqGetFunction(com.googlecode.aviator.runtime.function.seq.SeqGetFunction) SeqCountFunction(com.googlecode.aviator.runtime.function.seq.SeqCountFunction) SeqArrayFunction(com.googlecode.aviator.runtime.function.seq.SeqArrayFunction) SeqRemoveFunction(com.googlecode.aviator.runtime.function.seq.SeqRemoveFunction) SeqSomeFunction(com.googlecode.aviator.runtime.function.seq.SeqSomeFunction) SeqMakePredicateFunFunction(com.googlecode.aviator.runtime.function.seq.SeqMakePredicateFunFunction) SeqNewSetFunction(com.googlecode.aviator.runtime.function.seq.SeqNewSetFunction) SeqSortFunction(com.googlecode.aviator.runtime.function.seq.SeqSortFunction) SeqMapFunction(com.googlecode.aviator.runtime.function.seq.SeqMapFunction) SeqIncludeFunction(com.googlecode.aviator.runtime.function.seq.SeqIncludeFunction) SeqAddFunction(com.googlecode.aviator.runtime.function.seq.SeqAddFunction) SeqPutFunction(com.googlecode.aviator.runtime.function.seq.SeqPutFunction) SeqEveryFunction(com.googlecode.aviator.runtime.function.seq.SeqEveryFunction) SeqIntoFunction(com.googlecode.aviator.runtime.function.seq.SeqIntoFunction) SeqMinFunction(com.googlecode.aviator.runtime.function.seq.SeqMinFunction) SeqCompsitePredFunFunction(com.googlecode.aviator.runtime.function.seq.SeqCompsitePredFunFunction) SeqNewMapFunction(com.googlecode.aviator.runtime.function.seq.SeqNewMapFunction) SeqContainsKeyFunction(com.googlecode.aviator.runtime.function.seq.SeqContainsKeyFunction) SeqNewListFunction(com.googlecode.aviator.runtime.function.seq.SeqNewListFunction)

Aggregations

SeqAddFunction (com.googlecode.aviator.runtime.function.seq.SeqAddFunction)1 SeqArrayFunction (com.googlecode.aviator.runtime.function.seq.SeqArrayFunction)1 SeqCompsitePredFunFunction (com.googlecode.aviator.runtime.function.seq.SeqCompsitePredFunFunction)1 SeqContainsKeyFunction (com.googlecode.aviator.runtime.function.seq.SeqContainsKeyFunction)1 SeqCountFunction (com.googlecode.aviator.runtime.function.seq.SeqCountFunction)1 SeqEveryFunction (com.googlecode.aviator.runtime.function.seq.SeqEveryFunction)1 SeqFilterFunction (com.googlecode.aviator.runtime.function.seq.SeqFilterFunction)1 SeqGetFunction (com.googlecode.aviator.runtime.function.seq.SeqGetFunction)1 SeqIncludeFunction (com.googlecode.aviator.runtime.function.seq.SeqIncludeFunction)1 SeqIntoFunction (com.googlecode.aviator.runtime.function.seq.SeqIntoFunction)1 SeqMakePredicateFunFunction (com.googlecode.aviator.runtime.function.seq.SeqMakePredicateFunFunction)1 SeqMapEntryFunction (com.googlecode.aviator.runtime.function.seq.SeqMapEntryFunction)1 SeqMapFunction (com.googlecode.aviator.runtime.function.seq.SeqMapFunction)1 SeqMaxFunction (com.googlecode.aviator.runtime.function.seq.SeqMaxFunction)1 SeqMinFunction (com.googlecode.aviator.runtime.function.seq.SeqMinFunction)1 SeqNewArrayFunction (com.googlecode.aviator.runtime.function.seq.SeqNewArrayFunction)1 SeqNewListFunction (com.googlecode.aviator.runtime.function.seq.SeqNewListFunction)1 SeqNewMapFunction (com.googlecode.aviator.runtime.function.seq.SeqNewMapFunction)1 SeqNewSetFunction (com.googlecode.aviator.runtime.function.seq.SeqNewSetFunction)1 SeqNotAnyFunction (com.googlecode.aviator.runtime.function.seq.SeqNotAnyFunction)1