|
|
@ -1,8 +1,12 @@ |
|
|
|
package com.fanruan.api.function; |
|
|
|
package com.fanruan.api.function; |
|
|
|
|
|
|
|
|
|
|
|
import com.fanruan.api.function.shell.FineFunc; |
|
|
|
import com.fanruan.api.function.shell.FineFunc; |
|
|
|
|
|
|
|
import com.fr.design.formula.FunctionDefNAD; |
|
|
|
|
|
|
|
import com.fr.design.formula.NameAndDescription; |
|
|
|
import com.fr.file.FunctionManager; |
|
|
|
import com.fr.file.FunctionManager; |
|
|
|
|
|
|
|
import com.fr.file.FunctionManagerProvider; |
|
|
|
import com.fr.script.Calculator; |
|
|
|
import com.fr.script.Calculator; |
|
|
|
|
|
|
|
//import com.fr.solution.plugin.design.formula.compat.FunctionDefNAD;
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.script.FunctionDef; |
|
|
|
import com.fr.stable.script.FunctionDef; |
|
|
|
|
|
|
|
|
|
|
@ -56,6 +60,20 @@ public class FunctionKit { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static NameAndDescription[] getDescription() { |
|
|
|
|
|
|
|
FunctionManagerProvider funtionManager = FunctionKit.getInstance(); |
|
|
|
|
|
|
|
if (funtionManager != null) { |
|
|
|
|
|
|
|
int functionDefCount = funtionManager.getFunctionDefCount(); |
|
|
|
|
|
|
|
FunctionDefNAD[] nads = new FunctionDefNAD[functionDefCount]; |
|
|
|
|
|
|
|
for (int i = 0; i < functionDefCount; i++) { |
|
|
|
|
|
|
|
nads[i] = new FunctionDefNAD(funtionManager.getFunctionDef(i)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return nads; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new NameAndDescription[0]; |
|
|
|
|
|
|
|
} |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 得到函数管理器实例 |
|
|
|
* 得到函数管理器实例 |
|
|
|
* @return 函数管理器 |
|
|
|
* @return 函数管理器 |
|
|
|