/** * This function creates a directive record and adds it to the list, the value will be added later * after it is parsed. * * @param name Name * @param haveQuotedPair true if quoted pair is there else false */ @DSGenerator( tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2014-09-03 15:02:38.406 -0400", hash_original_method = "266E87F8A828CDA30627CAA7433FF646", hash_generated_method = "CE03EAF7EDFB05F294B401E410CDC667") void addDirective(String name, boolean haveQuotedPair) { String value; int inputIndex; int valueIndex; char valueChar; int type; if (!haveQuotedPair) { value = m_directives.substring(m_scanStart, m_curPos); } else { // copy one character at a time skipping backslash excapes. StringBuffer valueBuf = new StringBuffer(m_curPos - m_scanStart); valueIndex = 0; inputIndex = m_scanStart; while (inputIndex < m_curPos) { if ('\\' == (valueChar = m_directives.charAt(inputIndex))) inputIndex++; valueBuf.setCharAt(valueIndex, m_directives.charAt(inputIndex)); valueIndex++; inputIndex++; } value = new String(valueBuf); } if (m_state == STATE_SCANNING_QUOTED_STRING_VALUE) type = ParsedDirective.QUOTED_STRING_VALUE; else type = ParsedDirective.TOKEN_VALUE; m_directiveList.add(new ParsedDirective(name, value, type)); }
/** * Returns the List iterator. * * @return Returns the Iterator Object for the List. */ @DSGenerator( tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2014-09-03 15:02:38.406 -0400", hash_original_method = "C1A23D08EF654713F298E7271002D3F0", hash_generated_method = "C1A23D08EF654713F298E7271002D3F0") Iterator getIterator() { return m_directiveList.iterator(); }