//
// Create a value for the constant.
//
HashMap<String, DartObjectImpl> fieldMap = new HashMap<String, DartObjectImpl>();
fieldMap.put(indexFieldName, new DartObjectImpl(intType, new IntState(BigInteger.valueOf(i))));
DartObjectImpl value = new DartObjectImpl(enumType, new GenericState(fieldMap));
constantField.setEvaluationResult(new ValidResult(value));
fields.add(constantField);
getters.add(createGetter(constantField));
constantName.setStaticElement(constantField);
}