Examples of Result


Examples of com.google.code.lightssh.common.model.Result

  /**
   * 读消息
   */
  public String read( ){
    result = new Result();
    if( publish == null ){
      result.setStatus(false);
      result.setMessage("参数错误!");
     
      return SUCCESS;
View Full Code Here

Examples of com.google.gwt.dev.codeserver.Job.Result

  /**
   * Compiles the first time, while Super Dev Mode is starting up.
   * Either this method or {@link #initWithoutPrecompile} should be called first.
   */
  synchronized Job.Result precompile(Job job) throws UnableToCompleteException {
    Result result = compile(job);
    job.onFinished(result);
    assert result.isOk();
    return result;
  }
View Full Code Here

Examples of com.google.gwt.junit.viewer.client.Result

    // get real comparative functionality in version two.

    double maxTime = 0;

    for (int i = 0; i < comparativeResults.size(); ++i) {
      Result r = (Result) comparativeResults.get(i);
      List resultTrials = r.getTrials();

      for (int j = 0; j < resultTrials.size(); ++j) {
        Trial t = (Trial) resultTrials.get(j);
        maxTime = Math.max(maxTime, t.getRunTimeMillis());
      }
View Full Code Here

Examples of com.google.gwt.search.client.Result

  private VerticalPanel clips = new VerticalPanel();
  private HorizontalPanel hp = new HorizontalPanel();
  private static final int CLIP_WIDTH = 200;

  public void onKeep(KeepEvent event) {
    final Result result = event.getResult();

    String title;
    if (result instanceof WebResult) {
      WebResult web = (WebResult) result;
      title = web.getTitle();

    } else if (result instanceof NewsResult) {
      NewsResult web = (NewsResult) result;
      title = web.getTitle();
    } else if (result instanceof VideoResult) {
      VideoResult video = (VideoResult) result;
      title = video.getTitle();
      // Metadata is also available
      System.out.println(video.getTbHeight() + "x" + video.getTbWidth() + " "
          + video.getDuration() + "seconds");
    } else {
      // Ads don't have an official interface
      title = "Advertisement";
    }

    HTML h = new HTML(title);
    h.addStyleName("clipLink");
    h.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        PopupPanel p = new PopupPanel(true);
        p.addStyleName("keepPopup");
        p.setWidget(result.getHtml());
        Widget w = (Widget) event.getSource();
        p.setPopupPosition(w.getAbsoluteLeft() + 5, w.getAbsoluteTop()
            + w.getOffsetHeight() + 5);
        p.show();
      }
View Full Code Here

Examples of com.google.gwt.thirdparty.javascript.jscomp.Result

    List<JSModule> modules = createClosureModules(program);

    // Build the externs based on what we discovered building the modules.
    List<JSSourceFile> externs = getClosureCompilerExterns();

    Result result = compiler.compileModules(externs, modules, options);
    if (result.success) {
      int fragments = program.getFragmentCount();
      for (int i = 0; i < fragments; i++) {
        int module = mapFragmentIndexToModuleIndex(i);
        js[i] = compiler.toSource(modules.get(module));
View Full Code Here

Examples of com.google.javascript.jscomp.ReplaceStrings.Result

    assertEquals(0, substitutedStrings.length % 2);
    assertEquals(substitutedStrings.length / 2, results.size());

    // Verify that substituted strings are decoded correctly.
    for (int i = 0; i < substitutedStrings.length; i += 2) {
      Result result = results.get(i / 2);
      String original = substitutedStrings[i + 1];
      assertEquals(original, result.original);

      String replacement = substitutedStrings[i];
      assertEquals(replacement, result.replacement);
View Full Code Here

Examples of com.google.javascript.jscomp.Result

  }

  public static Result compile(String program, int num) {
    SourceFile input = SourceFile.fromCode(""+num, program);
    Compiler compiler = new Compiler();
    Result result = compiler.compile(extern, input, options);
    return result;
  }
View Full Code Here

Examples of com.google.refine.importing.UrlRewriter.Result

                    JSONObject fileRecord = new JSONObject();
                    JSONUtilities.safePut(fileRecord, "origin", "download");
                    JSONUtilities.safePut(fileRecord, "url", urlString);
                   
                    for (UrlRewriter rewriter : ImportingManager.urlRewriters) {
                        Result result = rewriter.rewrite(urlString);
                        if (result != null) {
                            urlString = result.rewrittenUrl;
                            url = new URL(urlString);
                           
                            JSONUtilities.safePut(fileRecord, "url", urlString);
View Full Code Here

Examples of com.google.testing.compile.Compilation.Result

      return new SuccessfulCompilationBuilder(result);
    }

    @Override
    public UnsuccessfulCompilationClause failsToCompile() {
      Result result = Compilation.compile(processors, getSubject());
      if (result.successful()) {
        String message = Joiner.on('\n').join(
            "Compilation was expected to fail, but contained no errors.",
            "",
            reportFilesGenerated(result));
        failureStrategy.fail(message);
View Full Code Here

Examples of com.google.walkaround.util.server.writebatch.BatchingUpdateProcessorTest.Result

        throw new BatchTooLargeException("Have already processed " + updatesProcessed);
      }
      maybeFail(random, params.processUpdatePermanentFailureLikelihood,
          params.processUpdateRetryableFailureLikelihood);
      updatesProcessed++;
      return new Result(randomChance(random, params.updateRejectionLikelihood));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.