MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / require

Method require

src/org/kxml2/io/KXmlParser.java:1366–1374  ·  view source on GitHub ↗
(int type, String namespace, String name)

Source from the content-addressed store, hash-verified

1364 }
1365
1366 public void require(int type, String namespace, String name)
1367 throws XmlPullParserException, IOException {
1368
1369 if (type != this.type
1370 || (namespace != null && !namespace.equals(getNamespace()))
1371 || (name != null && !name.equals(getName())))
1372 exception(
1373 "expected: " + TYPES[type] + " {" + namespace + "}" + name);
1374 }
1375
1376 public String nextText() throws XmlPullParserException, IOException {
1377 if (type != START_TAG)

Callers 3

skipSubTreeMethod · 0.95
parseMethod · 0.80
parseMethod · 0.80

Calls 4

getNamespaceMethod · 0.95
getNameMethod · 0.95
exceptionMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected