MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / toString

Method toString

ij/src/main/java/ij/macro/Variable.java:123–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 }
122
123 public String toString() {
124 String s = "";
125 if (array!=null)
126 s += "array["+array.length+"]";
127 else if (str!=null) {
128 s = str;
129 if (s.length()>80)
130 s = s.substring(0, 80)+"...";
131 s = s.replaceAll("\n", " | ");
132 s = "\""+s+"\"";
133 } else {
134 if (value==(int)value)
135 s += (int)value;
136 else
137 s += ij.IJ.d2s(value,4);
138 }
139 return s;
140 }
141
142 public synchronized Object clone() {
143 try {return super.clone();}

Callers

nothing calls this directly

Calls 4

substringMethod · 0.80
replaceAllMethod · 0.80
lengthMethod · 0.65
d2sMethod · 0.45

Tested by

no test coverage detected