Returns the number of dimensions of this array type. This method should only be used for an array type. @return the number of dimensions of this array type.
()
| 422 | */ |
| 423 | |
| 424 | public int getDimensions () { |
| 425 | int i = 1; |
| 426 | while (buf[off + i] == '[') { |
| 427 | ++i; |
| 428 | } |
| 429 | return i; |
| 430 | } |
| 431 | |
| 432 | /** |
| 433 | * Returns the type of the elements of this array type. |