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

📄 javactask.java

📁 java1.6众多例子参考
💻 JAVA
字号:
/** * @(#)JavacTask.java	1.5 06/06/25 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * Use and Distribution is subject to the Java Research License available * at <http://wwws.sun.com/software/communitysource/jrl.html>. */package com.sun.source.util;import com.sun.source.tree.CompilationUnitTree;import com.sun.source.tree.Tree;import java.io.IOException;import javax.lang.model.element.Element;import javax.lang.model.type.TypeMirror;import javax.lang.model.util.Elements;import javax.lang.model.util.Types;import javax.tools.JavaCompiler.CompilationTask;import javax.tools.JavaFileObject;/** * Provides access to functionality specific to the Sun Java Compiler, javac. * * @author Peter von der Ah&eacute; * @author Jonathan Gibbons * @since 1.6 */public abstract class JavacTask implements CompilationTask {    /**     * Parse the specified files returning a list of abstract syntax trees.     *     * @return a list of abstract syntax trees     * @throws IOException if an unhandled I/O error occurred in the compiler.     */    public abstract Iterable<? extends CompilationUnitTree> parse()        throws IOException;    /**     * Complete all analysis.     *     * @return a list of elements that were analyzed     * @throws IOException if an unhandled I/O error occurred in the compiler.     */    public abstract Iterable<? extends Element> analyze() throws IOException;    /**     * Generate code.     *     * @return a list of files that were generated     * @throws IOException if an unhandled I/O error occurred in the compiler.     */    public abstract Iterable<? extends JavaFileObject> generate() throws IOException;    /**     * The specified listener will receive events describing the progress of     * this compilation task.     */    public abstract void setTaskListener(TaskListener taskListener);    /**     * Get a type mirror of the tree node determined by the specified path.     */    public abstract TypeMirror getTypeMirror(Iterable<? extends Tree> path);    /**     * Get a utility object for dealing with program elements.     */    public abstract Elements getElements();    /**     * Get a utility object for dealing with type mirrors.     */    public abstract Types getTypes();}

⌨️ 快捷键说明

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