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

Method performFinalAction

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

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)

Source from the content-addressed store, hash-verified

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.

Callers 5

doState3Method · 0.95
doState4Method · 0.95
doState7Method · 0.95
doState8Method · 0.95
doState9Method · 0.95

Calls 3

setElemNameMethod · 0.95
setClosePosMethod · 0.95
setEmptyMethod · 0.95

Tested by

no test coverage detected