示例#1
0
  @Override
  public java.lang.Object __hx_getField(
      java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) {
    {
      boolean __temp_executeDef3283 = true;
      switch (field.hashCode()) {
        case -1776922004:
          {
            if (field.equals("toString")) {
              __temp_executeDef3283 = false;
              return ((haxe.lang.Function)
                  (new haxe.lang.Closure(
                      ((java.lang.Object) (this)), haxe.lang.Runtime.toString("toString"))));
            }

            break;
          }

        case 98:
          {
            if (field.equals("b")) {
              __temp_executeDef3283 = false;
              return this.b;
            }

            break;
          }

        case 96417:
          {
            if (field.equals("add")) {
              __temp_executeDef3283 = false;
              return ((haxe.lang.Function)
                  (new haxe.lang.Closure(
                      ((java.lang.Object) (this)), haxe.lang.Runtime.toString("add"))));
            }

            break;
          }
      }

      if (__temp_executeDef3283) {
        return super.__hx_getField(field, throwErrors, isCheck, handleProperties);
      } else {
        throw null;
      }
    }
  }
示例#2
0
  @Override
  public java.lang.Object __hx_getField(
      java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) {
    {
      boolean __temp_executeDef58 = true;
      switch (field.hashCode()) {
        case -1776922004:
          {
            if (field.equals("toString")) {
              __temp_executeDef58 = false;
              return ((haxe.lang.Function)
                  (new haxe.lang.Closure(
                      ((java.lang.Object) (this)), haxe.lang.Runtime.toString("toString"))));
            }

            break;
          }

        case 3076014:
          {
            if (field.equals("date")) {
              __temp_executeDef58 = false;
              return this.date;
            }

            break;
          }

        case -201721364:
          {
            if (field.equals("timezoneOffset")) {
              __temp_executeDef58 = false;
              return ((haxe.lang.Function)
                  (new haxe.lang.Closure(
                      ((java.lang.Object) (this)), haxe.lang.Runtime.toString("timezoneOffset"))));
            }

            break;
          }
      }

      if (__temp_executeDef58) {
        return super.__hx_getField(field, throwErrors, isCheck, handleProperties);
      } else {
        throw null;
      }
    }
  }
示例#3
0
  public static java.lang.Object handleGetField(
      java.lang.String str, java.lang.String f, boolean throwErrors) {
    {
      java.lang.String __temp_svar48 = (f);
      int __temp_hash50 = __temp_svar48.hashCode();
      boolean __temp_executeDef49 = true;
      switch (__temp_hash50) {
        case -1106363674:
          {
            if (__temp_svar48.equals("length")) {
              __temp_executeDef49 = false;
              return str.length();
            }

            break;
          }

        case 530542161:
        case -891529231:
        case 109648666:
        case -467511597:
        case 1943291465:
        case 397153782:
        case -1361633751:
        case -1137582698:
        case -399551817:
          {
            if (((((__temp_hash50 == 530542161) && __temp_svar48.equals("substring")))
                || ((((__temp_hash50 == -891529231) && __temp_svar48.equals("substr")))
                    || ((((__temp_hash50 == 109648666) && __temp_svar48.equals("split")))
                        || ((((__temp_hash50 == -467511597) && __temp_svar48.equals("lastIndexOf")))
                            || ((((__temp_hash50 == 1943291465) && __temp_svar48.equals("indexOf")))
                                || ((((__temp_hash50 == 397153782)
                                        && __temp_svar48.equals("charCodeAt")))
                                    || ((((__temp_hash50 == -1361633751)
                                            && __temp_svar48.equals("charAt")))
                                        || ((((__temp_hash50 == -1137582698)
                                                && __temp_svar48.equals("toLowerCase")))
                                            || __temp_svar48.equals("toUpperCase")))))))))) {
              __temp_executeDef49 = false;
              return new haxe.lang.Closure(
                  ((java.lang.Object) (str)), haxe.lang.Runtime.toString(f));
            }

            break;
          }
      }

      if (__temp_executeDef49) {
        if (throwErrors) {
          throw haxe.lang.HaxeException.wrap((("Field not found: \'" + f) + "\' in String"));
        } else {
          return null;
        }

      } else {
        throw null;
      }
    }
  }
示例#4
0
 public java.lang.String getTag() {
   java.lang.Object cl = haxe.root.Type.getEnum(((java.lang.Object) (this)));
   return haxe.lang.Runtime.toString(
       haxe.lang.Runtime.callField(
           haxe.lang.Runtime.getField(cl, "constructs", true),
           "__get",
           new haxe.root.Array(new java.lang.Object[] {this.index})));
 }
示例#5
0
 public static java.lang.Object __hx_create(haxe.root.Array arr) {
   return new sys.io.Process(
       haxe.lang.Runtime.toString(arr.__get(0)),
       ((haxe.root.Array<java.lang.String>) (arr.__get(1))));
 }