Exemplo n.º 1
0
    private void  fromJSONValuesSummary(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        TypeValuesSummaryJSON convert_classy = TypeValuesSummaryJSON.from_json(json_value, ignore_extras, true);

        setValuesSummary(convert_classy);
    }
Exemplo n.º 2
0
 public void setValuesSummary(TypeValuesSummaryJSON new_value)
 {
     if (flagHasValuesSummary)
     {
     }
     flagHasValuesSummary = true;
     storeValuesSummary   = new_value;
 }
Exemplo n.º 3
0
            protected override void finish()
            {
                TypeValuesSummaryJSON result = new TypeValuesSummaryJSON();

                Debug.Assert(result != null);
                finish(result);
                handle_result(result);
            }
Exemplo n.º 4
0
 protected void finish(TypeValuesSummaryJSON result)
 {
     if (fieldGeneratorNumHeads.have_value)
     {
         result.setNumHeads(fieldGeneratorNumHeads.value);
         fieldGeneratorNumHeads.have_value = false;
     }
     else if ((!(result.hasNumHeads())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"NumHeads\" field was missing.");
     }
     if (fieldGeneratorNumTails.have_value)
     {
         result.setNumTails(fieldGeneratorNumTails.value);
         fieldGeneratorNumTails.have_value = false;
     }
     else if ((!(result.hasNumTails())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"NumTails\" field was missing.");
     }
 }
Exemplo n.º 5
0
 protected override void handle_result(TypeValuesSummaryJSON result)
 {
     top.value.Add(result);
 }
Exemplo n.º 6
0
 protected override void handle_result(TypeValuesSummaryJSON result)
 {
     //@@@            Debug.Assert(!have_value);
     have_value = true;
     value      = result;
 }
Exemplo n.º 7
0
 protected abstract void handle_result(TypeValuesSummaryJSON new_result);