Package minecrafterror.analysis

Examples of minecrafterror.analysis.AnalysisResult


      System.out.println("Debug: " + Boolean.toString(res.isSilly())
          + ": " + res.getMessage());
    }
    // If no other results (size = 1), get the first one
    // Otherwise, get the second one
    AnalysisResult conclusion = (results.size() > 1) ? (results.get(1))
        : (results.get(0));
    return conclusion;
  }
View Full Code Here


   *
   * @param output
   */
  public void autoAnalyze(String output) {
    Output = output; // TODO, temporary measure for pastebin()
    AnalysisResult result = analyze(output);
    GuiInstance
        .append("\n\n")
        .append((result.isSilly()) ? "Well, that one was easy."
            : "Here's what I think went wrong:").append("\n\n")
        .append(result.getMessage()).append("\n");
    GuiInstance.fixTextPointer();
  }
View Full Code Here

  }

  public void pastebin() {
    if (!SPAMDETECT && !Output.isEmpty()) {
      SPAMDETECT = true;
      AnalysisResult result = analyze(Output);
      String paste = "Recorded by MinecraftError (https://github.com/medsouz/MinecraftError).\n\nAutomatic analysis: "
          + result.getMessage() + "\n" + Output;
      GuiInstance.append("\nPosting to pastebin.com...\n");

      // Build parameter string
      String data = "api_dev_key=00ee7bd5d711b33ec4c1386b32f8e945&api_option=paste&api_paste_code="
          + paste;
View Full Code Here

TOP

Related Classes of minecrafterror.analysis.AnalysisResult

Copyright © 2018 www.massapicom. 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.