use of cbit.vcell.parser.ASTFuncNode.FunctionType in project vcell by virtualcell.
the class SolverUtilities method getSizeFunctionInvocations.
public static Set<FunctionInvocation> getSizeFunctionInvocations(Expression expression) {
if (expression == null) {
return null;
}
FunctionInvocation[] functionInvocations = expression.getFunctionInvocations(new FunctionFilter() {
@Override
public boolean accept(String functionName, FunctionType functionType) {
if (functionName.equals(MathFunctionDefinitions.Function_regionArea_current.getFunctionName()) || functionName.equals(MathFunctionDefinitions.Function_regionVolume_current.getFunctionName())) {
return true;
}
return false;
}
});
Set<FunctionInvocation> fiSet = new HashSet<FunctionInvocation>();
for (FunctionInvocation fi : functionInvocations) {
fiSet.add(fi);
}
return fiSet;
}
Aggregations