*/
public ScalarField createNameDefField(MetaObject mo,
String fn,
PType type, int size, int scale)
throws SpeedoException {
ScalarField sf;
if (mo instanceof Class) {
sf = ((Class) mo).createHiddenField(fn, type, size, scale);
} else if (mo instanceof GenClassRef) {
sf = ((GenClassRef) mo).createHiddenField(fn, type, size, scale);
} else {