}
if (matcher.group(1).toLowerCase().equals("default")) {
defaultvalue = value;
}
}
Parameter newParam = new Parameter(name, type, Boolean.valueOf(required), defaultvalue);
name = type = required = defaultvalue = "";
function.addParameter(newParam);
}
}
}
functions.add(function);
}
i = scriptNodes.iterator();
while (i.hasNext()) {
FunctionInfo currItem = (FunctionInfo) i.next();
String funcName = currItem.getFunctionName();
String funcReturn = currItem.getReturnType();
Function function = new Function(funcName, funcReturn, Byte.parseByte("8"));
// System.out.println(currItem.getItemData());
List args = currItem.getParameters();
Iterator j = args.iterator();
while (j.hasNext()) {
Map<String, String> parameterAttribs = (Map) j.next();
name = parameterAttribs.get("name");
type = parameterAttribs.get("type");
required = parameterAttribs.get("required");
defaultvalue = parameterAttribs.get("default");
Parameter newParam = new Parameter(name, type, Boolean.valueOf(required), defaultvalue);
name = type = required = defaultvalue = "";
function.addParameter(newParam);
}
functions.add(function);
}