APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.tools.javac.comp

public Class Todo

extends AbstractQueue<Env<AttrContext>>
Class Inheritance
Imports
java.util.AbstractQueue, .Collection, .HashMap, .Iterator, .LinkedList, .Map, .Queue, javax.tools.JavaFileObject, com.sun.tools.javac.util.Context

A queue of all as yet unattributed classes.

This is NOT part of any supported API. 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.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
pack-priv LinkedList<Env<AttrContext>>
pack-priv LinkedList<Queue<Env<AttrContext>>>
pack-priv Map<JavaFileObject, Todo.FileQueue>
protected static final Context.Key<Todo>
todoKey

The context key for the todo list.

Constructor Summary

AccessConstructor and Description
protected
Todo(Context context)

Create a new todo list.

Method Summary

Modifier and TypeMethod and Description
private void
public void
public Queue<Queue<Env<AttrContext>>>
public static Todo
instance(Context context)

Get the Todo instance for this context.

public Iterator<Env<AttrContext>>
iterator()

Implements abstract java.util.AbstractCollection.iterator.

Implements java.util.Collection.iterator.

Returns an iterator over the elements in this collection.

public boolean
offer(Env<AttrContext> e)

Implements java.util.Queue.offer.

Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions.

public Env<AttrContext>
peek()

Implements java.util.Queue.peek.

Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.

public Env<AttrContext>
poll()

Implements java.util.Queue.poll.

Retrieves and removes the head of this queue, or returns null if this queue is empty.

private void
public void
retainFiles(Collection<? extends JavaFileObject>
The source files of the classes to keep.
sourceFiles
)

Removes all unattributed classes except those belonging to the given collection of files.

public int
size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.Collection.size.

Returns the number of elements in this collection.

Inherited from java.util.AbstractQueue:
addaddAllclearelementremove

Field Detail

contentsback to summary
pack-priv LinkedList<Env<AttrContext>> contents
contentsByFileback to summary
pack-priv LinkedList<Queue<Env<AttrContext>>> contentsByFile
fileMapback to summary
pack-priv Map<JavaFileObject, Todo.FileQueue> fileMap
todoKeyback to summary
protected static final Context.Key<Todo> todoKey

The context key for the todo list.

Constructor Detail

Todoback to summary
protected Todo(Context context)

Create a new todo list.

Annotations
@SuppressWarnings:this-escape

Method Detail

addByFileback to summary
private void addByFile(Env<AttrContext> env)
appendback to summary
public void append(Env<AttrContext> env)
groupByFileback to summary
public Queue<Queue<Env<AttrContext>>> groupByFile()
instanceback to summary
public static Todo instance(Context context)

Get the Todo instance for this context.

iteratorback to summary
public Iterator<Env<AttrContext>> iterator()

Implements abstract java.util.AbstractCollection.iterator.

Implements java.util.Collection.iterator.

Doc from java.util.Collection.iterator.

Returns an iterator over the elements in this collection. There are no guarantees concerning the order in which the elements are returned (unless this collection is an instance of some class that provides a guarantee).

Annotations
@Override
offerback to summary
public boolean offer(Env<AttrContext> e)

Implements java.util.Queue.offer.

Doc from java.util.Queue.offer.

Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions. When using a capacity-restricted queue, this method is generally preferable to add, which can fail to insert an element only by throwing an exception.

peekback to summary
public Env<AttrContext> peek()

Implements java.util.Queue.peek.

Doc from java.util.Queue.peek.

Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.

pollback to summary
public Env<AttrContext> poll()

Implements java.util.Queue.poll.

Doc from java.util.Queue.poll.

Retrieves and removes the head of this queue, or returns null if this queue is empty.

removeByFileback to summary
private void removeByFile(Env<AttrContext> env)
retainFilesback to summary
public void retainFiles(Collection<? extends JavaFileObject> sourceFiles)

Removes all unattributed classes except those belonging to the given collection of files.

Parameters
sourceFiles:Collection<? extends JavaFileObject>

The source files of the classes to keep.

sizeback to summary
public int size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.Collection.size.

Doc from java.util.Collection.size.

Returns the number of elements in this collection. If this collection contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Annotations
@Override
com.sun.tools.javac.comp back to summary

pack-priv Class Todo.FileQueue

extends AbstractQueue<Env<AttrContext>>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv LinkedList<Env<AttrContext>>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Iterator<Env<AttrContext>>
iterator()

Implements abstract java.util.AbstractCollection.iterator.

Implements java.util.Collection.iterator.

Returns an iterator over the elements in this collection.

public boolean
offer(Env<AttrContext> e)

Implements java.util.Queue.offer.

Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions.

public Env<AttrContext>
peek()

Implements java.util.Queue.peek.

Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.

public Env<AttrContext>
poll()

Implements java.util.Queue.poll.

Retrieves and removes the head of this queue, or returns null if this queue is empty.

public int
size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.Collection.size.

Returns the number of elements in this collection.

Inherited from java.util.AbstractQueue:
addaddAllclearelementremove

Field Detail

fileContentsback to summary
pack-priv LinkedList<Env<AttrContext>> fileContents

Constructor Detail

FileQueueback to summary
pack-priv FileQueue()

Method Detail

iteratorback to summary
public Iterator<Env<AttrContext>> iterator()

Implements abstract java.util.AbstractCollection.iterator.

Implements java.util.Collection.iterator.

Doc from java.util.Collection.iterator.

Returns an iterator over the elements in this collection. There are no guarantees concerning the order in which the elements are returned (unless this collection is an instance of some class that provides a guarantee).

Annotations
@Override
offerback to summary
public boolean offer(Env<AttrContext> e)

Implements java.util.Queue.offer.

Doc from java.util.Queue.offer.

Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions. When using a capacity-restricted queue, this method is generally preferable to add, which can fail to insert an element only by throwing an exception.

peekback to summary
public Env<AttrContext> peek()

Implements java.util.Queue.peek.

Doc from java.util.Queue.peek.

Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.

pollback to summary
public Env<AttrContext> poll()

Implements java.util.Queue.poll.

Doc from java.util.Queue.poll.

Retrieves and removes the head of this queue, or returns null if this queue is empty.

sizeback to summary
public int size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.Collection.size.

Doc from java.util.Collection.size.

Returns the number of elements in this collection. If this collection contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Annotations
@Override