package java.lang {
import java.lang.Arguments;
dynamic public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException {
  public function StringIndexOutOfBoundsException__(): Object {
    return this;
  }
  public function StringIndexOutOfBoundsException__Ljava_lang_String_2(message: String): Object {
    return this;
  }
  public function StringIndexOutOfBoundsException__I(index: int): Object {
    return this;
  }
  public function StringIndexOutOfBoundsException(... vargs) {
    var args: Array;
    var id: int;
    if (vargs.length == 1 && vargs[0] is Arguments) {
      args = Arguments(vargs[0]).args;
      id = Arguments(vargs[0]).id;
    } else {
      if (vargs.length == 0) {
        id = 0;
      } else if (vargs.length == 1 && vargs[0] is String) {
        args = vargs;
        id = 1;
      } else if (vargs.length == 1 && vargs[0] is int) {
        args = vargs;
        id = 2;
      }
    }
    switch (id) {
      case 0:
        var superArgs: Arguments;
        superArgs = new Arguments(java.lang.IndexOutOfBoundsException.IndexOutOfBoundsException__, []);
        break;
      case 1:
        var args1: Array = [args[0]];
        superArgs = new Arguments(java.lang.IndexOutOfBoundsException.IndexOutOfBoundsException__Ljava_lang_String_2, [args1[0]]);
        break;
      case 2:
        var args2: Array = [args[0]];
        superArgs = new Arguments(java.lang.IndexOutOfBoundsException.IndexOutOfBoundsException__Ljava_lang_String_2, ["String index out of range: " + args2[0]]);
        break;
    }
    super(superArgs);
    switch (id) {
      case 0:
        StringIndexOutOfBoundsException__();
        break;
      case 1:
        StringIndexOutOfBoundsException__Ljava_lang_String_2(args1[0]);
        break;
      case 2:
        StringIndexOutOfBoundsException__I(args2[0]);
        break;
    }
  }
  public static const StringIndexOutOfBoundsException__ : int = 0;
  public static const StringIndexOutOfBoundsException__Ljava_lang_String_2 : int = 1;
  public static const StringIndexOutOfBoundsException__I : int = 2;
}
}
