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 ';'.
()
| 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 |
nothing calls this directly
no test coverage detected