This is the action when we finished to read the entire tag The action means that we put the tag into stack and consider that is empty as default
(String elemName, int pos)
| 522 | * as default |
| 523 | */ |
| 524 | private void performFinalAction(String elemName, int pos) { |
| 525 | // create anew CustomObject |
| 526 | CustomObject obj = new CustomObject(); |
| 527 | |
| 528 | // set its properties |
| 529 | obj.setElemName(elemName); |
| 530 | obj.setClosePos(pos); |
| 531 | |
| 532 | // default we consider every element to be empty |
| 533 | // in state 1 we modify that if the element is followed by text |
| 534 | obj.setEmpty(true); |
| 535 | stack.push(obj); |
| 536 | } // performFinalAction |
| 537 | |
| 538 | /** |
| 539 | * This is the action performed when an end tag is read. |