MCPcopy Create free account
hub / github.com/GateNLP/gate-core / doState8

Method doState8

src/main/java/gate/sgml/Sgml2Xml.java:332–358  ·  view source on GitHub ↗

If '>' go to state 1 If WS go to state 9 Stays in state 8 and read the attribute's value

(char currChar)

Source from the content-addressed store, hash-verified

330 * Stays in state 8 and read the attribute's value
331 */
332 private void doState8(char currChar){
333
334 if ('>' == currChar){
335 // go to state 1
336 m_currState = 1;
337
338 // complete the end " ( <elem attr="value> )
339 m_modifier.insert(m_cursor - 1, '"');
340
341 // go to te current possition (because of insert)
342 m_cursor ++;
343
344 // we finished to read a beggining tag
345 // see the method definition for more details
346 performFinalAction(elemName, m_cursor - 1);
347 }
348 if (isWhiteSpace(currChar)){
349 // go to state 9
350 m_currState = 9;
351
352 // add the ending " char
353 m_modifier.insert(m_cursor - 1, '"');
354
355 // increment the cursor in order to anulate the effect of insert
356 m_cursor ++;
357 }
358 } // doState8
359 /**
360 * Here we prepare to read another attrib, value pair (any char -> state 5)
361 * If '>' we just read a beggining tag -> state 1

Callers 1

convertMethod · 0.95

Calls 3

performFinalActionMethod · 0.95
isWhiteSpaceMethod · 0.95
insertMethod · 0.80

Tested by

no test coverage detected