If '>' go to state 1 If WS go to state 9 Stays in state 8 and read the attribute's value
(char currChar)
| 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 |
no test coverage detected