MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / getNodeName

Method getNodeName

src/main/java/org/htmlunit/html/HtmlElement.java:426–437  ·  view source on GitHub ↗

@return the same value as returned by #getTagName()

()

Source from the content-addressed store, hash-verified

424 * @return the same value as returned by {@link #getTagName()}
425 */
426 @Override
427 public String getNodeName() {
428 final String prefix = getPrefix();
429 if (prefix != null) {
430 // create string builder only if needed (performance)
431 final StringBuilder name = new StringBuilder(prefix.toLowerCase(Locale.ROOT))
432 .append(':')
433 .append(getLocalName().toLowerCase(Locale.ROOT));
434 return name.toString();
435 }
436 return getLocalName().toLowerCase(Locale.ROOT);
437 }
438
439 /**
440 * Returns this element's tab index, if it has one. If the tab index is outside the

Callers 8

serializationMethod · 0.95
serializationLambdaMethod · 0.95
getClassNameMethod · 0.95
getCanonicalXPathMethod · 0.95
getXPathTokenMethod · 0.95
getEnclosingElementMethod · 0.45

Calls 4

getPrefixMethod · 0.45
appendMethod · 0.45
getLocalNameMethod · 0.45
toStringMethod · 0.45

Tested by 4

serializationMethod · 0.76
serializationLambdaMethod · 0.76