From c7d07be2fd259cb14e05a9c6a4c00b0ebf4ca783 Mon Sep 17 00:00:00 2001 From: Kalven Date: Mon, 2 Sep 2019 14:52:57 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-1117=20=E5=86=8D=E6=AC=A1=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/fanruan/api/cal/ParameterKit.java | 9 +++++++++ src/main/java/com/fanruan/api/function/FunctionKit.java | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/fanruan/api/cal/ParameterKit.java b/src/main/java/com/fanruan/api/cal/ParameterKit.java index 963e152..7ba659a 100644 --- a/src/main/java/com/fanruan/api/cal/ParameterKit.java +++ b/src/main/java/com/fanruan/api/cal/ParameterKit.java @@ -89,4 +89,13 @@ public class ParameterKit { public static @NotNull ParameterMapNameSpace createParameterMapNameSpace(ParameterProvider[] ps) { return ParameterMapNameSpace.create(ps); } + + /** + * 创建新的参数对象 + * @param content 参数名 + * @return 参数对象 + */ + public static @NotNull Parameter createNewParameter(String content) { + return new Parameter(content); + } } diff --git a/src/main/java/com/fanruan/api/function/FunctionKit.java b/src/main/java/com/fanruan/api/function/FunctionKit.java index 5234d4e..68eaa19 100644 --- a/src/main/java/com/fanruan/api/function/FunctionKit.java +++ b/src/main/java/com/fanruan/api/function/FunctionKit.java @@ -6,7 +6,6 @@ import com.fr.design.formula.NameAndDescription; import com.fr.file.FunctionManager; import com.fr.file.FunctionManagerProvider; import com.fr.script.Calculator; -//import com.fr.solution.plugin.design.formula.compat.FunctionDefNAD; import com.fr.stable.StringUtils; import com.fr.stable.script.FunctionDef;