class Type {

  public int getDimensions() {
    int numDimensions = 1;
    while (valueBuffer.charAt(valueBegin + numDimensions) == '[') {
      numDimensions++;
    }
    return numDimensions;
  }

  private  Type(final int sort, final String valueBuffer, final int valueBegin, final int valueEnd);

}