protected override void handle_result(TypeValue new_value) { DictionaryPartOfSpeechJSON result = new DictionaryPartOfSpeechJSON(); result.setValue(new_value); handle_result(result); }
private void fromJSONPartOfSpeech(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONArrayValue json_array1 = json_value.array_value(); if (json_array1 == null) { throw new Exception("The value for field PartOfSpeech of DictionaryDefinitionJSON is not an array."); } int count1 = json_array1.componentCount(); List <DictionaryPartOfSpeechJSON> vector_PartOfSpeech1 = new List <DictionaryPartOfSpeechJSON>(count1); for (int num1 = 0; num1 < count1; ++num1) { DictionaryPartOfSpeechJSON convert_classy = DictionaryPartOfSpeechJSON.from_json(json_array1.component(num1), ignore_extras, true); vector_PartOfSpeech1.Add(convert_classy); } initPartOfSpeech(); for (int num1 = 0; num1 < vector_PartOfSpeech1.Count; ++num1) { appendPartOfSpeech(vector_PartOfSpeech1[num1]); } for (int num1 = 0; num1 < vector_PartOfSpeech1.Count; ++num1) { } }
public void appendPartOfSpeech(DictionaryPartOfSpeechJSON to_append) { if (!flagHasPartOfSpeech) { flagHasPartOfSpeech = true; storePartOfSpeech.Clear(); } Debug.Assert(flagHasPartOfSpeech); storePartOfSpeech.Add(to_append); }
public void appendPartOfSpeech(string chars) { DictionaryPartOfSpeechJSON.TypeValueKnownValues known = DictionaryPartOfSpeechJSON.stringToValue(chars); DictionaryPartOfSpeechJSON.TypeValue new_value = new DictionaryPartOfSpeechJSON.TypeValue(); if (known == DictionaryPartOfSpeechJSON.TypeValueKnownValues.Value__none) { new_value.in_known_list = false; new_value.string_value = chars; } else { new_value.in_known_list = true; new_value.list_value = known; } appendPartOfSpeech(new_value); }
protected override void handle_result(DictionaryPartOfSpeechJSON result) { top.value.Add(result); }
protected override void handle_result(DictionaryPartOfSpeechJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(DictionaryPartOfSpeechJSON new_result);