MCPcopy Create free account
hub / github.com/Tickaroo/tikxml / endElement

Method endElement

core/src/main/java/com/tickaroo/tikxml/XmlReader.java:350–361  ·  view source on GitHub ↗

Consumes the next token from the JSON stream and asserts that it is the end of the current object.

()

Source from the content-addressed store, hash-verified

348 * object.
349 */
350 public void endElement() throws IOException {
351 int p = peeked;
352 if (p == PEEKED_NONE) {
353 p = doPeek();
354 }
355 if (p == PEEKED_ELEMENT_END) {
356 popStack();
357 peeked = PEEKED_NONE;
358 } else {
359 throw syntaxError("Expected end of element but was " + peek());
360 }
361 }
362
363 /**
364 * Checks if there is one more unconsumed xml element that can be consumed afterwards with {@link

Callers 15

validWithWhitespacesMethod · 0.95
emptyTextContentMethod · 0.95
jsonArrayTextContentMethod · 0.95
inlineClosingMethod · 0.95
missingClosingTagMethod · 0.95
skipTextContentMethod · 0.95
nestedElementsMethod · 0.95

Calls 4

doPeekMethod · 0.95
popStackMethod · 0.95
syntaxErrorMethod · 0.95
peekMethod · 0.95

Tested by 15

validWithWhitespacesMethod · 0.76
emptyTextContentMethod · 0.76
jsonArrayTextContentMethod · 0.76
inlineClosingMethod · 0.76
missingClosingTagMethod · 0.76
skipTextContentMethod · 0.76
nestedElementsMethod · 0.76