|
|
@ -58,6 +58,7 @@ public final class FunctionConstants { |
|
|
|
public static FunctionGroup ALL = getAllFunctionGroup(); |
|
|
|
public static FunctionGroup ALL = getAllFunctionGroup(); |
|
|
|
public static List<String> abandonFormulas = Arrays.asList("CIRCULAR", "CROSSLAYERTOTAL", "HIERARCHY", "LAYERTOTAL"); |
|
|
|
public static List<String> abandonFormulas = Arrays.asList("CIRCULAR", "CROSSLAYERTOTAL", "HIERARCHY", "LAYERTOTAL"); |
|
|
|
public static NameAndFunctionList NEW = getNewFunctionList(); |
|
|
|
public static NameAndFunctionList NEW = getNewFunctionList(); |
|
|
|
|
|
|
|
private static List<String> shieldedFormulas = Arrays.asList("ENBYSTRNUM","TEXTGETNUM" ,"GETCHARNUM","GCD", "LCM"); |
|
|
|
|
|
|
|
|
|
|
|
static { |
|
|
|
static { |
|
|
|
loadEmbededFunctions(); |
|
|
|
loadEmbededFunctions(); |
|
|
@ -102,7 +103,7 @@ public final class FunctionConstants { |
|
|
|
if (StableUtils.classInstanceOf(cls, iface)) { |
|
|
|
if (StableUtils.classInstanceOf(cls, iface)) { |
|
|
|
Function inst; |
|
|
|
Function inst; |
|
|
|
inst = (Function) cls.newInstance(); |
|
|
|
inst = (Function) cls.newInstance(); |
|
|
|
if (abandonFormulas.contains(inst.getClass().getSimpleName())) { |
|
|
|
if (abandonFormulas.contains(inst.getClass().getSimpleName()) || shieldedFormulas.contains(inst.getClass().getSimpleName()) { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
for (NameAndTypeAndFunctionList EMBFUNCTION : EMBFUNCTIONS) { |
|
|
|
for (NameAndTypeAndFunctionList EMBFUNCTION : EMBFUNCTIONS) { |
|
|
|