public void execute(TokenScanner paramTokenScanner, JavaBackEnd jbe) {
   paramTokenScanner.scanNumbers();
   paramTokenScanner.verifyToken("(");
   String title = nextString(paramTokenScanner);
   paramTokenScanner.verifyToken(")");
   jbe.consoleSetTitle(title);
 }
  public void execute(TokenScanner paramTokenScanner, JavaBackEnd jbe) {
    paramTokenScanner.verifyToken("(");
    boolean value = nextBoolean(paramTokenScanner);
    paramTokenScanner.verifyToken(")");

    Frame consoleFrame = jbe.getJBEConsoleFrame();
    if (consoleFrame != null) {
      consoleFrame.setVisible(value);
    }
  }
  public void execute(TokenScanner paramTokenScanner, JavaBackEnd paramJavaBackEnd) {
    paramTokenScanner.verifyToken("(");
    int passCount = nextInt(paramTokenScanner);
    paramTokenScanner.verifyToken(",");
    int testCount = nextInt(paramTokenScanner);
    paramTokenScanner.verifyToken(",");
    boolean isStyleCheck = nextBoolean(paramTokenScanner);
    paramTokenScanner.verifyToken(")");

    AutograderUnitTestGUI gui = AutograderUnitTestGUI.getInstance(paramJavaBackEnd, isStyleCheck);
    gui.setTestCounts(passCount, testCount);
  }
 public void execute(TokenScanner paramTokenScanner, JavaBackEnd paramJavaBackEnd) {
   paramTokenScanner.verifyToken("(");
   String str1 = nextString(paramTokenScanner);
   JBEWindow localJBEWindow = paramJavaBackEnd.getWindow(str1);
   paramTokenScanner.verifyToken(")");
   Dimension dim = new Dimension(0, 0);
   if (localJBEWindow != null) {
     dim =
         localJBEWindow.isShowing()
             ? localJBEWindow.getCanvas().getPreferredSize()
             : localJBEWindow.getCanvas().getSize();
   }
   SplPipeDecoder.writeResult("GDimension(" + dim.width + ", " + dim.height + ")");
 }
  // gbufferedimage.setRGB(x, y, rgb);
  public void execute(TokenScanner paramTokenScanner, JavaBackEnd paramJavaBackEnd) {
    paramTokenScanner.verifyToken("(");
    String id = nextString(paramTokenScanner);
    paramTokenScanner.verifyToken(",");
    int x = nextInt(paramTokenScanner);
    paramTokenScanner.verifyToken(",");
    int y = nextInt(paramTokenScanner);
    paramTokenScanner.verifyToken(",");
    int rgb = nextInt(paramTokenScanner);
    paramTokenScanner.verifyToken(")");

    GObject gobj = paramJavaBackEnd.getGObject(id);
    if (gobj != null && gobj instanceof GBufferedImage) {
      GBufferedImage img = (GBufferedImage) gobj;
      img.setRGB(x, y, rgb);
    }
  }
 public void execute(TokenScanner paramTokenScanner, JavaBackEnd paramJavaBackEnd) {
   paramTokenScanner.verifyToken("(");
   boolean bool = nextString(paramTokenScanner).equals("true");
   paramTokenScanner.verifyToken(")");
   paramJavaBackEnd.setExitOnConsoleClose(bool);
 }