|
|
@ -1,7 +1,7 @@ |
|
|
|
package com.fr.solution.plugin.design.formula.compat; |
|
|
|
package com.fr.solution.plugin.design.formula.compat; |
|
|
|
|
|
|
|
|
|
|
|
import com.fanruan.api.util.GeneralKit; |
|
|
|
import com.fanruan.api.util.GeneralKit; |
|
|
|
import com.fanruan.api.util.StableKit; |
|
|
|
import com.fanruan.api.util.ReflectKit; |
|
|
|
import com.fr.design.formula.FunctionDefNAD; |
|
|
|
import com.fr.design.formula.FunctionDefNAD; |
|
|
|
import com.fr.design.formula.FunctionGroup; |
|
|
|
import com.fr.design.formula.FunctionGroup; |
|
|
|
import com.fr.design.formula.NameAndDescription; |
|
|
|
import com.fr.design.formula.NameAndDescription; |
|
|
@ -96,8 +96,7 @@ public final class FunctionConstants { |
|
|
|
for (String fileName : findClassNamesUnderFilePath(classFilePath)) { |
|
|
|
for (String fileName : findClassNamesUnderFilePath(classFilePath)) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
Class<?> cls = Class.forName(pkgName + "." + fileName.substring(0, fileName.length() - 6)); |
|
|
|
Class<?> cls = Class.forName(pkgName + "." + fileName.substring(0, fileName.length() - 6)); |
|
|
|
// if (StableUtils.classInstanceOf(cls, iface)) {
|
|
|
|
if (ReflectKit.classInstanceOf(cls, iface)) { |
|
|
|
if (StableKit.classInstanceOf(cls, iface)) { |
|
|
|
|
|
|
|
Function inst; |
|
|
|
Function inst; |
|
|
|
inst = (Function)cls.newInstance(); |
|
|
|
inst = (Function)cls.newInstance(); |
|
|
|
for (NameAndTypeAndFunctionList EMBFUNCTION : EMBFUNCTIONS) { |
|
|
|
for (NameAndTypeAndFunctionList EMBFUNCTION : EMBFUNCTIONS) { |
|
|
|