main.java

来自「GJC编译器的源代码。是一个开放源代码的工业级编译器。」· Java 代码 · 共 50 行

JAVA
50
字号
/** * @(#)Main.java	1.16 03/01/23 * * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.tools.javac;import java.io.PrintWriter;public class Main {    public Main() {        super();    }    static {        ClassLoader loader = Main.class.getClassLoader();        if (loader != null)            loader.setPackageAssertionStatus("com.sun.tools.javac", true);    }    /**      * Command line interface.      * @param args   The command line parameters.      */    public static void main(String[] args) {        System.exit(compile(args));    }    /**      * Programmatic interface.      * @param args   The command line parameters.      */    public static int compile(String[] args) {        com.sun.tools.javac.v8.Main compiler = new com.sun.tools.javac.v8.Main("javac");        return compiler.compile(args);    }    /**      * Programmatic interface.      * @param args   The command line parameters.      * @param out    Where the compiler's output is directed.      */    public static int compile(String[] args, PrintWriter out) {        com.sun.tools.javac.v8.Main compiler =                new com.sun.tools.javac.v8.Main("javac", out);        return compiler.compile(args);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?