Beispiel #1
0
        protected override void finish()
        {
            if (!(getMapCommandJSONKey().Equals("ShowMap")))
            {
                throw new Exception("The key field has a value other than `ShowMap'.");
            }
            ShowMapJSON result = new ShowMapJSON();

            Debug.Assert(result != null);
            finish(result);
            handle_result(result);
        }
Beispiel #2
0
 protected void finish(ShowMapJSON result)
 {
     if (fieldGeneratorNativeData.have_value)
     {
         result.setNativeData(fieldGeneratorNativeData.value);
         fieldGeneratorNativeData.have_value = false;
     }
     else if ((!(result.hasNativeData())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"NativeData\" field was missing.");
     }
     base.finish(result);
 }
Beispiel #3
0
 protected override void handle_result(ShowMapJSON result)
 {
     top.value.Add(result);
 }
Beispiel #4
0
        protected override void handle_result(ShowMapJSON result)
        {
//@@@            Debug.Assert(!have_value);
            have_value = true;
            value      = result;
        }
Beispiel #5
0
 protected abstract void handle_result(ShowMapJSON new_result);