MCPcopy Index your code
hub / github.com/clojure/clojure / toString

Method toString

src/jvm/clojure/asm/TypePath.java:161–184  ·  view source on GitHub ↗

Returns a string representation of this type path. #ARRAY_ELEMENT steps are represented with '[', #INNER_TYPE steps with '.', #WILDCARD_BOUND steps with ' ' and #TYPE_ARGUMENT steps with their type argument index in decimal form followed by ';'.

()

Source from the content-addressed store, hash-verified

159 * #TYPE_ARGUMENT} steps with their type argument index in decimal form followed by ';'.
160 */
161 @Override
162 public String toString() {
163 int length = getLength();
164 StringBuilder result = new StringBuilder(length * 2);
165 for (int i = 0; i < length; ++i) {
166 switch (getStep(i)) {
167 case ARRAY_ELEMENT:
168 result.append('[');
169 break;
170 case INNER_TYPE:
171 result.append('.');
172 break;
173 case WILDCARD_BOUND:
174 result.append('*');
175 break;
176 case TYPE_ARGUMENT:
177 result.append(getStepArgument(i)).append(';');
178 break;
179 default:
180 throw new AssertionError();
181 }
182 }
183 return result.toString();
184 }
185
186 /**
187 * Puts the type_path JVMS structure corresponding to the given TypePath into the given

Callers

nothing calls this directly

Calls 4

getLengthMethod · 0.95
getStepMethod · 0.95
getStepArgumentMethod · 0.95
appendMethod · 0.80

Tested by

no test coverage detected