private static String getFunctionInfo(PageContext pc,String functionName) {
FunctionLib[] flds;
flds = ((ConfigImpl)pc.getConfig()).getFLDs();
FunctionLibFunction function=null;
for(int i=0;i<flds.length;i++) {
function = flds[i].getFunction(functionName.toLowerCase());
if(function!=null)break;
}
if(function == null) return "";
StringBuffer rtn=new StringBuffer();
rtn.append(function.getName()+"(");
int optionals=0;
ArrayList args = function.getArg();
for(int i=0;i<args.size();i++) {
FunctionLibFunctionArg arg=(FunctionLibFunctionArg) args.get(i);
if(i!=0)rtn.append(", ");
if(!arg.getRequired()) {
rtn.append("[");
optionals++;
}
rtn.append(arg.getName());
rtn.append(":");
rtn.append(arg.getTypeAsString());
}
for(int i=0;i<optionals;i++)
rtn.append("]");
rtn.append("):"+function.getReturnTypeAsString());
return rtn.toString();
}