MCPcopy Index your code
hub / github.com/killme2008/aviatorscript / toString

Method toString

src/main/java/com/googlecode/aviator/utils/Env.java:569–595  ·  view source on GitHub ↗

Gets the map as a String. @return a string version of the map

()

Source from the content-addressed store, hash-verified

567 * @return a string version of the map
568 */
569 @Override
570 public String toString() {
571 StringBuilder buf = new StringBuilder(32 * size());
572 buf.append(super.toString()).append("{"). //
573 append(Constants.INSTANCE_VAR).append("=").append(this.instance).append(", ").//
574 append(Constants.EXP_VAR).append("=").append(this.expression).append(", ").//
575 append(Constants.ENV_VAR).append("=").append("<this>");
576
577 Iterator<String> it = keySet().iterator();
578 boolean hasNext = it.hasNext();
579 if (hasNext) {
580 buf.append(", ");
581 }
582 while (hasNext) {
583 String key = it.next();
584 Object value = get(key);
585 buf.append(key).append('=').append(value == this ? "<this>" : value);
586
587 hasNext = it.hasNext();
588 if (hasNext) {
589 buf.append(',').append(' ');
590 }
591 }
592
593 buf.append('}');
594 return buf.toString();
595 }
596
597 private Map<String, Object> getmOverrides(final boolean readOnly) {
598 if (this.mOverrides == null) {

Callers 2

traceInstrumentsMethod · 0.45
readFullyMethod · 0.45

Calls 7

sizeMethod · 0.95
keySetMethod · 0.95
getMethod · 0.95
appendMethod · 0.45
iteratorMethod · 0.45
hasNextMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected