コード例 #1
0
  public void init() {
    super.init();

    // Declare command line arguments.
    runtime
        .bool("printJavaAST", "printJavaAST", false, "Print Java AST.")
        .bool("printJavaCode", "printJavaCode", false, "Print Java code.")
        .bool("countMethods", "countMethods", false, "Count all Java methods.")
        .bool("translate", "translate", false, "Translate from Java to C++.")
        .bool(
            "findDependencies",
            "findDependencies",
            false,
            "Find all Dependencies of given Java file.");
  }
コード例 #2
0
  public void prepare() {
    super.prepare();

    // Perform consistency checks on command line arguments.
  }