if (arguments.length != 1) {
throw new StaticError("A constructor function must have exactly one argument");
}
AtomicType type = (AtomicType)Type.getBuiltInItemType(uri, localName);
if (type==null) {
return new ErrorExpression(
new DynamicError("Unknown constructor function: " + localName));
}
return new CastExpression(arguments[0], type, false);
}