Search in sources :

Example 1 with UndefFunction

use of com.googlecode.aviator.runtime.function.system.UndefFunction in project aviatorscript by killme2008.

the class AviatorEvaluatorInstance method loadSystemFunctions.

private void loadSystemFunctions() {
    addFunction(ComparatorFunction.INSTANCE);
    addFunction(new CompareFunction());
    addFunction(new SysDateFunction());
    addFunction(new PrintlnFunction());
    addFunction(new PrintFunction());
    addFunction(new PstFunction());
    addFunction(new RandomFunction());
    addFunction(new NowFunction());
    addFunction(new LongFunction());
    addFunction(new BooleanFunction());
    addFunction(new DoubleFunction());
    addFunction(new StrFunction());
    addFunction(new BigIntFunction());
    addFunction(new DecimalFunction());
    addFunction(new Date2StringFunction());
    addFunction(new String2DateFunction());
    addFunction(new BinaryFunction(OperatorType.ADD));
    addFunction(new BinaryFunction(OperatorType.Exponent));
    addFunction(new BinaryFunction(OperatorType.SUB));
    addFunction(new BinaryFunction(OperatorType.MULT));
    addFunction(new BinaryFunction(OperatorType.DIV));
    addFunction(new BinaryFunction(OperatorType.MOD));
    addFunction(new BinaryFunction(OperatorType.NEG));
    addFunction(new BinaryFunction(OperatorType.NOT));
    addFunction(new BinaryFunction(OperatorType.BIT_AND));
    addFunction(new BinaryFunction(OperatorType.BIT_OR));
    addFunction(new BinaryFunction(OperatorType.BIT_XOR));
    addFunction(new BinaryFunction(OperatorType.BIT_NOT));
    addFunction(new TupleFunction());
    addFunction(new MinFunction());
    addFunction(new MaxFunction());
    addFunction(new IdentityFunction());
    addFunction(new AssertFunction());
    addFunction(new RangeFunction());
    addFunction(new IsDefFunction());
    addFunction(new UndefFunction());
    addFunction(new TypeFunction());
    addFunction(SeqFunction.INSTANCE);
    addFunction(EvalFunction.INSTANCE);
    addFunction(IsAFunction.INSTANCE);
    addFunction(MetaFunction.INSTANCE);
    addFunction(WithMetaFunction.INSTANCE);
    addFunction(WithoutMetaFunction.INSTANCE);
}
Also used : TupleFunction(com.googlecode.aviator.runtime.function.system.TupleFunction) IsDefFunction(com.googlecode.aviator.runtime.function.system.IsDefFunction) BinaryFunction(com.googlecode.aviator.runtime.function.system.BinaryFunction) PstFunction(com.googlecode.aviator.runtime.function.system.PstFunction) AssertFunction(com.googlecode.aviator.runtime.function.system.AssertFunction) PrintFunction(com.googlecode.aviator.runtime.function.system.PrintFunction) SeqMinFunction(com.googlecode.aviator.runtime.function.seq.SeqMinFunction) MinFunction(com.googlecode.aviator.runtime.function.system.MinFunction) NowFunction(com.googlecode.aviator.runtime.function.system.NowFunction) PrintlnFunction(com.googlecode.aviator.runtime.function.system.PrintlnFunction) String2DateFunction(com.googlecode.aviator.runtime.function.system.String2DateFunction) Date2StringFunction(com.googlecode.aviator.runtime.function.system.Date2StringFunction) RangeFunction(com.googlecode.aviator.runtime.function.system.RangeFunction) StrFunction(com.googlecode.aviator.runtime.function.system.StrFunction) RandomFunction(com.googlecode.aviator.runtime.function.system.RandomFunction) BooleanFunction(com.googlecode.aviator.runtime.function.system.BooleanFunction) CompareFunction(com.googlecode.aviator.runtime.function.system.CompareFunction) DecimalFunction(com.googlecode.aviator.runtime.function.system.DecimalFunction) IdentityFunction(com.googlecode.aviator.runtime.function.system.IdentityFunction) SeqMaxFunction(com.googlecode.aviator.runtime.function.seq.SeqMaxFunction) MaxFunction(com.googlecode.aviator.runtime.function.system.MaxFunction) SysDateFunction(com.googlecode.aviator.runtime.function.system.SysDateFunction) BigIntFunction(com.googlecode.aviator.runtime.function.system.BigIntFunction) DoubleFunction(com.googlecode.aviator.runtime.function.system.DoubleFunction) LongFunction(com.googlecode.aviator.runtime.function.system.LongFunction) UndefFunction(com.googlecode.aviator.runtime.function.system.UndefFunction) TypeFunction(com.googlecode.aviator.runtime.function.system.TypeFunction)

Aggregations

SeqMaxFunction (com.googlecode.aviator.runtime.function.seq.SeqMaxFunction)1 SeqMinFunction (com.googlecode.aviator.runtime.function.seq.SeqMinFunction)1 AssertFunction (com.googlecode.aviator.runtime.function.system.AssertFunction)1 BigIntFunction (com.googlecode.aviator.runtime.function.system.BigIntFunction)1 BinaryFunction (com.googlecode.aviator.runtime.function.system.BinaryFunction)1 BooleanFunction (com.googlecode.aviator.runtime.function.system.BooleanFunction)1 CompareFunction (com.googlecode.aviator.runtime.function.system.CompareFunction)1 Date2StringFunction (com.googlecode.aviator.runtime.function.system.Date2StringFunction)1 DecimalFunction (com.googlecode.aviator.runtime.function.system.DecimalFunction)1 DoubleFunction (com.googlecode.aviator.runtime.function.system.DoubleFunction)1 IdentityFunction (com.googlecode.aviator.runtime.function.system.IdentityFunction)1 IsDefFunction (com.googlecode.aviator.runtime.function.system.IsDefFunction)1 LongFunction (com.googlecode.aviator.runtime.function.system.LongFunction)1 MaxFunction (com.googlecode.aviator.runtime.function.system.MaxFunction)1 MinFunction (com.googlecode.aviator.runtime.function.system.MinFunction)1 NowFunction (com.googlecode.aviator.runtime.function.system.NowFunction)1 PrintFunction (com.googlecode.aviator.runtime.function.system.PrintFunction)1 PrintlnFunction (com.googlecode.aviator.runtime.function.system.PrintlnFunction)1 PstFunction (com.googlecode.aviator.runtime.function.system.PstFunction)1 RandomFunction (com.googlecode.aviator.runtime.function.system.RandomFunction)1