MCPcopy Create free account
hub / github.com/mozilla/rhino / toString

Method toString

rhino/src/main/java/org/mozilla/javascript/Node.java:1058–1066  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1056 }
1057
1058 @Override
1059 public String toString() {
1060 if (Token.printTrees) {
1061 StringBuilder sb = new StringBuilder();
1062 toString(new HashMap<>(), sb);
1063 return sb.toString();
1064 }
1065 return String.valueOf(type);
1066 }
1067
1068 private void toString(Map<Node, Integer> printIds, StringBuilder sb) {
1069 if (Token.printTrees) {

Callers

nothing calls this directly

Calls 15

nameMethod · 0.95
getStringMethod · 0.95
getScopeMethod · 0.95
appendPrintIdMethod · 0.95
getNameMethod · 0.95
getSourceNameMethod · 0.95
getRawSourceEndMethod · 0.95
getRawSourceStartMethod · 0.95
getBaseLinenoMethod · 0.95
getEndLinenoMethod · 0.95
getJumpStatementMethod · 0.95
getFinallyMethod · 0.95

Tested by

no test coverage detected