com.sun.tools.javac.comp
Class Todo
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<Env<AttrContext>>
com.sun.tools.javac.comp.Todo
- All Implemented Interfaces:
- java.lang.Iterable<Env<AttrContext>>, java.util.Collection<Env<AttrContext>>, java.util.Queue<Env<AttrContext>>
- Direct Known Subclasses:
- JavadocTodo
public class Todo
- extends java.util.AbstractQueue<Env<AttrContext>>
A queue of all as yet unattributed classes.
This is NOT part of any API supported by Sun Microsystems. If
you write code that depends on this, you do so at your own risk.
This code and its internal interfaces are subject to change or
deletion without notice.
|
Constructor Summary |
protected |
Todo(Context context)
Create a new todo list. |
| Methods inherited from class java.util.AbstractQueue |
add, addAll, clear, element, remove |
| Methods inherited from class java.util.AbstractCollection |
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray |
todoKey
protected static final Context.Key<Todo> todoKey
- The context key for the todo list.
contents
java.util.LinkedList<Env<AttrContext>> contents
contentsByFile
java.util.LinkedList<java.util.Queue<Env<AttrContext>>> contentsByFile
fileMap
java.util.Map<JavaFileObject,Todo.FileQueue> fileMap
Todo
protected Todo(Context context)
- Create a new todo list.
instance
public static Todo instance(Context context)
- Get the Todo instance for this context.
append
public void append(Env<AttrContext> env)
iterator
public java.util.Iterator<Env<AttrContext>> iterator()
- Specified by:
iterator in interface java.lang.Iterable<Env<AttrContext>>- Specified by:
iterator in interface java.util.Collection<Env<AttrContext>>- Specified by:
iterator in class java.util.AbstractCollection<Env<AttrContext>>
size
public int size()
- Specified by:
size in interface java.util.Collection<Env<AttrContext>>- Specified by:
size in class java.util.AbstractCollection<Env<AttrContext>>
offer
public boolean offer(Env<AttrContext> e)
poll
public Env<AttrContext> poll()
peek
public Env<AttrContext> peek()
groupByFile
public java.util.Queue<java.util.Queue<Env<AttrContext>>> groupByFile()
addByFile
private void addByFile(Env<AttrContext> env)
removeByFile
private void removeByFile(Env<AttrContext> env)