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

📄 todo.java

📁 java编译器gjc源码 java编译环境
💻 JAVA
字号:
/**
 * @(#)Todo.java	1.3 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.v8.comp;
import com.sun.tools.javac.v8.util.*;


/**
 * A queue of all as yet unattributed classes.
 */
public class Todo extends ListBuffer {

    /**
     * The context key for the todo list.
     */
    private static final Context.Key todoKey = new Context.Key();

    /**
     * Get the Todo instance for this context.
     */
    public static Todo instance(Context context) {
        Todo instance = (Todo) context.get(todoKey);
        if (instance == null)
            instance = new Todo(context);
        return instance;
    }

    /**
      * Create a new todo list.
      */
    private Todo(Context context) {
        super();
        context.put(todoKey, this);
    }

    /*synthetic*/ public Object next() {
        return super.next();
    }

    /*synthetic*/ public Object first() {
        return super.first();
    }

    /*synthetic*/ public Object[] toArray(Object[] x0) {
        return super.toArray((Env[]) x0);
    }

    /*synthetic*/ public boolean contains(Object x0) {
        return super.contains((Env) x0);
    }

    /*synthetic*/ public ListBuffer appendArray(Object[] x0) {
        return super.appendArray((Env[]) x0);
    }

    /*synthetic*/ public ListBuffer append(Object x0) {
        return super.append((Env) x0);
    }

    /*synthetic*/ public ListBuffer prepend(Object x0) {
        return super.prepend((Env) x0);
    }
}

⌨️ 快捷键说明

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