⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 javacompiler.java

📁 JDK1.4编译器后端
💻 JAVA
字号:
/* * The JastAdd Extensible Java Compiler (http://jastadd.org) is covered * by the modified BSD License. You should have received a copy of the * modified BSD license with this compiler. *  * Copyright (c) 2005-2008, Torbjorn Ekman * All rights reserved. */import AST.*;class JavaCompiler extends Frontend {  public static void main(String args[]) {    if(!compile(args))      System.exit(1);  }    public static boolean compile(String args[]) {    return new JavaCompiler().process(        args,        new BytecodeParser(),        new JavaParser() {          public CompilationUnit parse(java.io.InputStream is, String fileName) throws java.io.IOException, beaver.Parser.Exception {            return new parser.JavaParser().parse(is, fileName);          }        }    );  }  protected void processNoErrors(CompilationUnit unit) {    unit.transformation();    if(Program.hasOption("-print"))      System.out.println(unit);    unit.generateClassfile();  }  protected String name() { return "Java1.4Frontend + Backend"; }  protected String version() { return "R20071015"; }}

⌨️ 快捷键说明

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