Beispiel #1
0
 private static int getBoolean(ThreadLocation loc) {
   Object val = loc.get(null);
   if (val == null) return 0;
   String sval = val.toString();
   Boolean bval = Options.booleanValue(val.toString());
   return bval == null ? 0 : bval.booleanValue() ? 1 : -1;
 }
 public void startLogicalBlock(String paramString1, boolean paramBoolean, String paramString2)
 {
   if ((this.queueSize == 0) && (this.bufferFillPointer == 0))
   {
     localObject = lineLengthLoc.get(null);
     if (localObject != null) {
       break label94;
     }
     this.lineLength = 80;
     localObject = miserWidthLoc.get(null);
     if ((localObject != null) && (localObject != Boolean.FALSE) && (localObject != LList.Empty)) {
       break label109;
     }
   }
   label94:
   label109:
   for (this.miserWidth = -1;; this.miserWidth = Integer.parseInt(localObject.toString()))
   {
     indentLoc.get(null);
     if (paramString1 != null) {
       write(paramString1);
     }
     if (this.prettyPrintingMode != 0) {
       break label124;
     }
     return;
     this.lineLength = Integer.parseInt(localObject.toString());
     break;
   }
   label124:
   int k = enqueue(4, 7);
   this.queueInts[(k + 2)] = this.pendingBlocksCount;
   Object localObject = this.queueStrings;
   int i;
   if (paramBoolean)
   {
     localObject[(k + 5)] = paramString1;
     this.queueStrings[(k + 6)] = paramString2;
     this.pendingBlocksCount += 1;
     i = this.currentBlock;
     if (i >= 0) {
       break label232;
     }
     i = 0;
   }
   for (;;)
   {
     this.queueInts[(k + 4)] = i;
     this.queueInts[(k + 3)] = 0;
     this.currentBlock = k;
     return;
     paramString1 = null;
     break;
     label232:
     int j = i - k;
     i = j;
     if (j > 0) {
       i = j - this.queueInts.length;
     }
   }
 }
Beispiel #3
0
 public static String consoleType() {
   Object val = consoleType.get(null);
   return val == null ? consoleTypeDefault : val.toString();
 }
Beispiel #4
0
 static {
   Lit41 = (SimpleSymbol) new SimpleSymbol("value").readResolve();
   Lit40 = (SimpleSymbol) new SimpleSymbol("name").readResolve();
   Lit39 = (SimpleSymbol) new SimpleSymbol("invoke").readResolve();
   Lit38 = (SimpleSymbol) new SimpleSymbol("getName").readResolve();
   Lit37 = (SimpleSymbol) new SimpleSymbol("quote").readResolve();
   Lit36 = (SimpleSymbol) new SimpleSymbol("attr").readResolve();
   Lit35 = (SimpleSymbol) new SimpleSymbol("<gnu.kawa.xml.KAttr>").readResolve();
   Lit34 = (SimpleSymbol) new SimpleSymbol("instance?").readResolve();
   Lit33 = (SimpleSymbol) new SimpleSymbol("+").readResolve();
   Lit32 = (SimpleSymbol) new SimpleSymbol("loop").readResolve();
   Lit31 = (SimpleSymbol) new SimpleSymbol("<object>").readResolve();
   Lit30 = (SimpleSymbol) new SimpleSymbol("primitive-array-get").readResolve();
   Lit29 = (SimpleSymbol) new SimpleSymbol("quasiquote").readResolve();
   Lit28 = (SimpleSymbol) new SimpleSymbol("$lookup$").readResolve();
   Lit27 = (SimpleSymbol) new SimpleSymbol("arg").readResolve();
   Lit26 = (SimpleSymbol) new SimpleSymbol("num-args").readResolve();
   Lit25 = (SimpleSymbol) new SimpleSymbol("i").readResolve();
   Lit24 = (SimpleSymbol) new SimpleSymbol("<int>").readResolve();
   Lit23 = (SimpleSymbol) new SimpleSymbol("::").readResolve();
   Object localObject = (SimpleSymbol) new SimpleSymbol("run-application").readResolve();
   Lit21 = (SimpleSymbol) localObject;
   SyntaxRule localSyntaxRule =
       new SyntaxRule(
           new SyntaxPattern("\f\030\f\007\b", new Object[0], 1),
           "\001",
           "\021\030\004\b\003",
           new Object[] {
             PairWithPosition.make(
                 Lit28,
                 Pair.make(
                     (SimpleSymbol) new SimpleSymbol("gnu.kawa.models.Window").readResolve(),
                     Pair.make(
                         Pair.make(
                             Lit29,
                             Pair.make(
                                 (SimpleSymbol) new SimpleSymbol("open").readResolve(),
                                 LList.Empty)),
                         LList.Empty)),
                 "gui.scm",
                 749575)
           },
           0);
   Lit22 = new SyntaxRules(new Object[] {localObject}, new SyntaxRule[] {localSyntaxRule}, 1);
   Lit20 = (SimpleSymbol) new SimpleSymbol("Window").readResolve();
   Lit19 = (SimpleSymbol) new SimpleSymbol("set-content").readResolve();
   Lit18 = (SimpleSymbol) new SimpleSymbol("Column").readResolve();
   Lit17 = (SimpleSymbol) new SimpleSymbol("Row").readResolve();
   Lit16 = (SimpleSymbol) new SimpleSymbol("Text").readResolve();
   Lit15 = (SimpleSymbol) new SimpleSymbol("Label").readResolve();
   Lit14 = (SimpleSymbol) new SimpleSymbol("image-height").readResolve();
   Lit13 = (SimpleSymbol) new SimpleSymbol("image-width").readResolve();
   Lit12 = (SimpleSymbol) new SimpleSymbol("image-read").readResolve();
   localObject = (SimpleSymbol) new SimpleSymbol("text-field").readResolve();
   localSyntaxRule =
       new SyntaxRule(
           new SyntaxPattern("\f\030\003", new Object[0], 1),
           "\000",
           "\021\030\004\021\030\f\002",
           new Object[] {
             (SimpleSymbol) new SimpleSymbol("make").readResolve(),
             (SimpleSymbol) new SimpleSymbol("<gnu.kawa.models.DrawImage>").readResolve()
           },
           0);
   Lit11 = new SyntaxRules(new Object[] {localObject}, new SyntaxRule[] {localSyntaxRule}, 1);
   Lit10 = (SimpleSymbol) new SimpleSymbol("Image").readResolve();
   Lit9 = (SimpleSymbol) new SimpleSymbol("Button").readResolve();
   Lit8 = (SimpleSymbol) new SimpleSymbol("button").readResolve();
   Lit7 = (SimpleSymbol) new SimpleSymbol("as-color").readResolve();
   localObject = (SimpleSymbol) new SimpleSymbol("process-keywords").readResolve();
   Lit5 = (SimpleSymbol) localObject;
   localSyntaxRule =
       new SyntaxRule(
           new SyntaxPattern("\f\030\f\007\f\017\f\027\f\037\b", new Object[0], 4),
           "\001\001\001\001",
           "\021\030\004‘\b\021\030\f\021\030\024\021\030\034\b\021\030$\t\013\030,\b\021\030\004\021\0304\021\030<\b\021\030D\021\030L\b\021\030\004a\b\021\030T\b\021\030\\\t\013\030d\b\021\030l©\021\030ty\t\023\t\003\021\030|\b\021\030„\t\013\030Œ\030”™\021\030œi\021\030¤\021\030¬\b\t\023\t\003\030´\030¼\b\021\030Ä1\t\033\t\003\030Ì\030Ô",
           new Object[] {
             (SimpleSymbol) new SimpleSymbol("let").readResolve(),
             Lit26,
             Lit23,
             Lit24,
             (SimpleSymbol) new SimpleSymbol("field").readResolve(),
             PairWithPosition.make(
                 PairWithPosition.make(
                     Lit37,
                     PairWithPosition.make(
                         (SimpleSymbol) new SimpleSymbol("length").readResolve(),
                         LList.Empty,
                         "gui.scm",
                         16426),
                     "gui.scm",
                     16426),
                 LList.Empty,
                 "gui.scm",
                 16425),
             Lit32,
             PairWithPosition.make(
                 PairWithPosition.make(
                     Lit25,
                     PairWithPosition.make(
                         Lit23,
                         PairWithPosition.make(
                             Lit24,
                             PairWithPosition.make(IntNum.make(0), LList.Empty, "gui.scm", 20509),
                             "gui.scm",
                             20503),
                         "gui.scm",
                         20500),
                     "gui.scm",
                     20497),
                 LList.Empty,
                 "gui.scm",
                 20496),
             (SimpleSymbol) new SimpleSymbol("if").readResolve(),
             PairWithPosition.make(
                 (SimpleSymbol) new SimpleSymbol("<").readResolve(),
                 PairWithPosition.make(
                     Lit25,
                     PairWithPosition.make(Lit26, LList.Empty, "gui.scm", 24593),
                     "gui.scm",
                     24591),
                 "gui.scm",
                 24588),
             Lit27,
             PairWithPosition.make(
                 Lit30,
                 PairWithPosition.make(Lit31, LList.Empty, "gui.scm", 28710),
                 "gui.scm",
                 28689),
             PairWithPosition.make(Lit25, LList.Empty, "gui.scm", 28725),
             (SimpleSymbol) new SimpleSymbol("cond").readResolve(),
             PairWithPosition.make(
                 Lit34,
                 PairWithPosition.make(
                     Lit27,
                     PairWithPosition.make(
                         (SimpleSymbol) new SimpleSymbol("<gnu.expr.Keyword>").readResolve(),
                         LList.Empty,
                         "gui.scm",
                         32797),
                     "gui.scm",
                     32793),
                 "gui.scm",
                 32782),
             PairWithPosition.make(
                 PairWithPosition.make(
                     Lit28,
                     Pair.make(
                         (SimpleSymbol) new SimpleSymbol("gnu.expr.Keyword").readResolve(),
                         Pair.make(Pair.make(Lit29, Pair.make(Lit38, LList.Empty)), LList.Empty)),
                     "gui.scm",
                     40970),
                 PairWithPosition.make(Lit27, LList.Empty, "gui.scm", 40995),
                 "gui.scm",
                 40969),
             PairWithPosition.make(
                 Lit30,
                 PairWithPosition.make(Lit31, LList.Empty, "gui.scm", 45087),
                 "gui.scm",
                 45066),
             PairWithPosition.make(
                 PairWithPosition.make(
                     Lit33,
                     PairWithPosition.make(
                         Lit25,
                         PairWithPosition.make(Lit42, LList.Empty, "gui.scm", 45107),
                         "gui.scm",
                         45105),
                     "gui.scm",
                     45102),
                 LList.Empty,
                 "gui.scm",
                 45102),
             PairWithPosition.make(
                 PairWithPosition.make(
                     Lit32,
                     PairWithPosition.make(
                         PairWithPosition.make(
                             Lit33,
                             PairWithPosition.make(
                                 Lit25,
                                 PairWithPosition.make(
                                     IntNum.make(2), LList.Empty, "gui.scm", 49170),
                                 "gui.scm",
                                 49168),
                             "gui.scm",
                             49165),
                         LList.Empty,
                         "gui.scm",
                         49165),
                     "gui.scm",
                     49159),
                 LList.Empty,
                 "gui.scm",
                 49159),
             PairWithPosition.make(
                 Lit34,
                 PairWithPosition.make(
                     Lit27,
                     PairWithPosition.make(Lit35, LList.Empty, "gui.scm", 53270),
                     "gui.scm",
                     53266),
                 "gui.scm",
                 53255),
             (SimpleSymbol) new SimpleSymbol("let*").readResolve(),
             PairWithPosition.make(
                 PairWithPosition.make(
                     Lit36,
                     PairWithPosition.make(
                         Lit23,
                         PairWithPosition.make(
                             Lit35,
                             PairWithPosition.make(Lit27, LList.Empty, "gui.scm", 57388),
                             "gui.scm",
                             57367),
                         "gui.scm",
                         57364),
                     "gui.scm",
                     57358),
                 PairWithPosition.make(
                     PairWithPosition.make(
                         Lit40,
                         PairWithPosition.make(
                             Lit23,
                             PairWithPosition.make(
                                 (SimpleSymbol)
                                     new SimpleSymbol("<java.lang.String>").readResolve(),
                                 PairWithPosition.make(
                                     PairWithPosition.make(
                                         Lit39,
                                         PairWithPosition.make(
                                             Lit36,
                                             PairWithPosition.make(
                                                 PairWithPosition.make(
                                                     Lit37,
                                                     PairWithPosition.make(
                                                         Lit38, LList.Empty, "gui.scm", 61489),
                                                     "gui.scm",
                                                     61489),
                                                 LList.Empty,
                                                 "gui.scm",
                                                 61488),
                                             "gui.scm",
                                             61483),
                                         "gui.scm",
                                         61475),
                                     LList.Empty,
                                     "gui.scm",
                                     61475),
                                 "gui.scm",
                                 61456),
                             "gui.scm",
                             61453),
                         "gui.scm",
                         61447),
                     PairWithPosition.make(
                         PairWithPosition.make(
                             Lit41,
                             PairWithPosition.make(
                                 PairWithPosition.make(
                                     Lit39,
                                     PairWithPosition.make(
                                         Lit36,
                                         PairWithPosition.make(
                                             PairWithPosition.make(
                                                 Lit37,
                                                 PairWithPosition.make(
                                                     (SimpleSymbol)
                                                         new SimpleSymbol("getObjectValue")
                                                             .readResolve(),
                                                     LList.Empty,
                                                     "gui.scm",
                                                     65564),
                                                 "gui.scm",
                                                 65564),
                                             LList.Empty,
                                             "gui.scm",
                                             65563),
                                         "gui.scm",
                                         65558),
                                     "gui.scm",
                                     65550),
                                 LList.Empty,
                                 "gui.scm",
                                 65550),
                             "gui.scm",
                             65543),
                         LList.Empty,
                         "gui.scm",
                         65543),
                     "gui.scm",
                     61447),
                 "gui.scm",
                 57357),
             PairWithPosition.make(
                 Lit40,
                 PairWithPosition.make(Lit41, LList.Empty, "gui.scm", 69666),
                 "gui.scm",
                 69661),
             PairWithPosition.make(
                 PairWithPosition.make(
                     Lit32,
                     PairWithPosition.make(
                         PairWithPosition.make(
                             Lit33,
                             PairWithPosition.make(
                                 Lit25,
                                 PairWithPosition.make(Lit42, LList.Empty, "gui.scm", 73746),
                                 "gui.scm",
                                 73744),
                             "gui.scm",
                             73741),
                         LList.Empty,
                         "gui.scm",
                         73741),
                     "gui.scm",
                     73735),
                 LList.Empty,
                 "gui.scm",
                 73735),
             (SimpleSymbol) new SimpleSymbol("else").readResolve(),
             PairWithPosition.make(Lit27, LList.Empty, "gui.scm", 81951),
             PairWithPosition.make(
                 PairWithPosition.make(
                     Lit32,
                     PairWithPosition.make(
                         PairWithPosition.make(
                             Lit33,
                             PairWithPosition.make(
                                 Lit25,
                                 PairWithPosition.make(Lit42, LList.Empty, "gui.scm", 86034),
                                 "gui.scm",
                                 86032),
                             "gui.scm",
                             86029),
                         LList.Empty,
                         "gui.scm",
                         86029),
                     "gui.scm",
                     86023),
                 LList.Empty,
                 "gui.scm",
                 86023)
           },
           0);
   Lit6 = new SyntaxRules(new Object[] {localObject}, new SyntaxRule[] {localSyntaxRule}, 4);
   Lit4 = (SimpleSymbol) new SimpleSymbol("*.getHeight").readResolve();
   Lit3 = (SimpleSymbol) new SimpleSymbol("*.getWidth").readResolve();
   Lit2 = (SimpleSymbol) new SimpleSymbol("cell-spacing").readResolve();
   Lit1 = (SimpleSymbol) new SimpleSymbol("text").readResolve();
   Lit0 = Color.class;
   $instance = new gui();
   loc$$St$DtgetWidth = ThreadLocation.getInstance(Lit3, null);
   loc$$St$DtgetHeight = ThreadLocation.getInstance(Lit4, null);
   process$Mnkeywords = Macro.make(Lit5, Lit6, $instance);
   localObject = $instance;
   as$Mncolor = new ModuleMethod((ModuleBody) localObject, 1, Lit7, 4097);
   button = new ModuleMethod((ModuleBody) localObject, 2, Lit8, 61440);
   Button = new ModuleMethod((ModuleBody) localObject, 3, Lit9, 61440);
   Image = Macro.make(Lit10, Lit11, $instance);
   image$Mnread = new ModuleMethod((ModuleBody) localObject, 4, Lit12, 4097);
   image$Mnwidth = new ModuleMethod((ModuleBody) localObject, 5, Lit13, 4097);
   image$Mnheight = new ModuleMethod((ModuleBody) localObject, 6, Lit14, 4097);
   Label = new ModuleMethod((ModuleBody) localObject, 7, Lit15, 61440);
   Text = new ModuleMethod((ModuleBody) localObject, 8, Lit16, 61440);
   Row = new ModuleMethod((ModuleBody) localObject, 9, Lit17, 61440);
   Column = new ModuleMethod((ModuleBody) localObject, 10, Lit18, 61440);
   set$Mncontent = new ModuleMethod((ModuleBody) localObject, 11, Lit19, 8194);
   Window = new ModuleMethod((ModuleBody) localObject, 12, Lit20, 61440);
   run$Mnapplication = Macro.make(Lit21, Lit22, $instance);
   $instance.run();
 }