From 1206e8a98cd88d326420040273617bee23051ea5 Mon Sep 17 00:00:00 2001 From: zjz1993 <1429595365@qq.com> Date: Wed, 28 Aug 2019 16:28:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=B7=BB=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E6=96=B9=E6=B3=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fanruan/api/cal/formula/BaseFormula.java | 8 ++++++++ .../fanruan/api/config/DefaultConfiguration.java | 4 ++++ .../java/com/fanruan/api/script/ScriptKit.java | 14 ++++++++++++++ .../com/fanruan/api/uniqueKey/UniqueKeyKit.java | 4 ++++ .../fanruan/api/util/eval/error/UtilEvalError.java | 4 ++++ 5 files changed, 34 insertions(+) create mode 100644 src/main/java/com/fanruan/api/cal/formula/BaseFormula.java create mode 100644 src/main/java/com/fanruan/api/config/DefaultConfiguration.java create mode 100644 src/main/java/com/fanruan/api/script/ScriptKit.java create mode 100644 src/main/java/com/fanruan/api/uniqueKey/UniqueKeyKit.java create mode 100644 src/main/java/com/fanruan/api/util/eval/error/UtilEvalError.java diff --git a/src/main/java/com/fanruan/api/cal/formula/BaseFormula.java b/src/main/java/com/fanruan/api/cal/formula/BaseFormula.java new file mode 100644 index 0000000..8759942 --- /dev/null +++ b/src/main/java/com/fanruan/api/cal/formula/BaseFormula.java @@ -0,0 +1,8 @@ +package com.fanruan.api.cal.formula; + +public class BaseFormula extends com.fr.base.BaseFormula{ + @Override + public String getXmlTag(){ + return ""; + } +} diff --git a/src/main/java/com/fanruan/api/config/DefaultConfiguration.java b/src/main/java/com/fanruan/api/config/DefaultConfiguration.java new file mode 100644 index 0000000..9135649 --- /dev/null +++ b/src/main/java/com/fanruan/api/config/DefaultConfiguration.java @@ -0,0 +1,4 @@ +package com.fanruan.api.config; + +public class DefaultConfiguration extends com.fr.config.DefaultConfiguration{ +} diff --git a/src/main/java/com/fanruan/api/script/ScriptKit.java b/src/main/java/com/fanruan/api/script/ScriptKit.java new file mode 100644 index 0000000..67108f2 --- /dev/null +++ b/src/main/java/com/fanruan/api/script/ScriptKit.java @@ -0,0 +1,14 @@ +package com.fanruan.api.script; +import com.fr.script.ScriptFactory; + +import javax.script.ScriptEngine; + +public class ScriptKit { + /** + * 获取一个全新的脚本执行引擎 + * @return 一个全新的脚本执行引擎 + */ + public static ScriptEngine newScriptEngine() { + return ScriptFactory.newScriptEngine(); + } +} diff --git a/src/main/java/com/fanruan/api/uniqueKey/UniqueKeyKit.java b/src/main/java/com/fanruan/api/uniqueKey/UniqueKeyKit.java new file mode 100644 index 0000000..f2f83e2 --- /dev/null +++ b/src/main/java/com/fanruan/api/uniqueKey/UniqueKeyKit.java @@ -0,0 +1,4 @@ +package com.fanruan.api.uniqueKey; + +public class UniqueKeyKit extends com.fr.config.utils.UniqueKey{ +} diff --git a/src/main/java/com/fanruan/api/util/eval/error/UtilEvalError.java b/src/main/java/com/fanruan/api/util/eval/error/UtilEvalError.java new file mode 100644 index 0000000..cda74ac --- /dev/null +++ b/src/main/java/com/fanruan/api/util/eval/error/UtilEvalError.java @@ -0,0 +1,4 @@ +package com.fanruan.api.util.eval.error; + +public class UtilEvalError extends com.fr.stable.UtilEvalError{ +}