for (int i=0; i<arguments.size(); i++)
{
Object value =
arguments.get(i).evaluate(executionState.getVariables());
String paramName = indices.get(i);
Type type = parameters.get(paramName);
Variable variable = new Variable(type, value);
result.put(paramName, variable);
// add the parameter name to the used types
// if its type is a processing element type
if (type instanceof ProcessingElementTypeType
&& arrayDimensions.get(paramName) == 0)
{
executionState.getUsedProcessingElements().
registerType(
paramName,
((ProcessingElementType)type.cast(value)));
}
}
return result;
}