Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 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;
     }
   }
 }
Ejemplo n.º 3
0
 public static String consoleType() {
   Object val = consoleType.get(null);
   return val == null ? consoleTypeDefault : val.toString();
 }