String () { StringBuilder result = new StringBuilder(); int pos = 0; while (pos < myPath.length) { switch (myPath[pos]) { case Collector.ARRAY_ELEMENT: result.append('['); break; case Collector.ENCLOSING_CLASS: result.append('.'); break; case Collector.WILDCARD_BOUND: result.append('*'); break; case Collector.TYPE_ARGUMENT: result.append(myPath[++pos]).append(';'); break; } pos++; } return result + "->" + myText; }