code: public void defineConstantField(int modifier, String fieldName, int constant)
      {
          DeclaredType dt = (DeclaredType)asType();
          VariableBuilder builder = new VariableBuilder(this, fieldName, dt.getTypeArguments(), typeParameterMap);
          builder.addModifiers(modifier);
          builder.addModifier(Modifier.STATIC);
          builder.setType(Typ.IntA);
          FieldInfo fieldInfo = new FieldInfo(this, builder.getVariableElement(), new ConstantValue(this, constant));
          addFieldInfo(fieldInfo);
          fieldInfo.readyToWrite();
      }
docs: Define constant field and set the constant value.
  @param modifier
  @param fieldName
  @param constant