com.sun.tools.apt.comp
Class Apt

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractQueue<A>
          extended by com.sun.tools.javac.util.ListBuffer<Env<AttrContext>>
              extended by com.sun.tools.apt.comp.Apt
All Implemented Interfaces:
java.lang.Iterable<Env<AttrContext>>, java.util.Collection<Env<AttrContext>>, java.util.Queue<Env<AttrContext>>

public class Apt
extends ListBuffer<Env<AttrContext>>

Apt compiler phase.

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.


Nested Class Summary
(package private) static class Apt.AptTreeScanner
          Used to scan javac trees to build data structures needed for bootstrapping the apt environment.
 
Field Summary
private static java.util.regex.Pattern allMatches
           
(package private)  AptEnv aptenv
           
protected static Context.Key<Apt> aptKey
          The context key for the todo list.
private  Context context
           
(package private)  java.util.Set<java.lang.String> genClassFileNames
          List of names of generated class files.
(package private)  java.util.Set<java.lang.String> genSourceFileNames
           
private static java.util.regex.Pattern noMatches
           
 
Fields inherited from class com.sun.tools.javac.util.ListBuffer
count, elems, last, shared
 
Constructor Summary
protected Apt(Context context)
          Create a new apt list.
 
Method Summary
(package private)  java.util.Set<java.lang.String> computeAnnotationSet(java.util.Collection<Symbol.ClassSymbol> classSymbols)
           
(package private)  void computeAnnotationSet(Symbol symbol, java.util.Set<java.lang.String> annotationSet)
           
 java.util.Set<java.lang.String> getClassFileNames()
           
 java.util.Set<java.lang.String> getSourceFileNames()
           
(package private)  java.util.regex.Pattern importStringToPattern(java.lang.String s)
          Convert import-style string to regex matching that string.
static Apt instance(Context context)
          Get the Apt instance for this context.
 void main(List<JCTree.JCCompilationUnit> treeList, ListBuffer<Symbol.ClassSymbol> classes, java.util.Map<java.lang.String,java.lang.String> origOptions, java.lang.ClassLoader aptCL, AnnotationProcessorFactory providedFactory, java.util.Set<java.lang.Class<? extends AnnotationProcessorFactory>> productiveFactories)
           
 
Methods inherited from class com.sun.tools.javac.util.ListBuffer
add, addAll, append, appendArray, appendList, appendList, clear, contains, containsAll, first, isEmpty, iterator, lb, length, next, nonEmpty, of, offer, peek, poll, prepend, remove, removeAll, retainAll, size, toArray, toArray, toList
 
Methods inherited from class java.util.AbstractQueue
element, remove
 
Methods inherited from class java.util.AbstractCollection
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
equals, hashCode
 

Field Detail

genSourceFileNames

java.util.Set<java.lang.String> genSourceFileNames

genClassFileNames

java.util.Set<java.lang.String> genClassFileNames
List of names of generated class files.


aptenv

AptEnv aptenv

context

private Context context

aptKey

protected static final Context.Key<Apt> aptKey
The context key for the todo list.


allMatches

private static final java.util.regex.Pattern allMatches

noMatches

private static final java.util.regex.Pattern noMatches
Constructor Detail

Apt

protected Apt(Context context)
Create a new apt list.

Method Detail

getSourceFileNames

public java.util.Set<java.lang.String> getSourceFileNames()

getClassFileNames

public java.util.Set<java.lang.String> getClassFileNames()

instance

public static Apt instance(Context context)
Get the Apt instance for this context.


computeAnnotationSet

java.util.Set<java.lang.String> computeAnnotationSet(java.util.Collection<Symbol.ClassSymbol> classSymbols)

computeAnnotationSet

void computeAnnotationSet(Symbol symbol,
                          java.util.Set<java.lang.String> annotationSet)

main

public void main(List<JCTree.JCCompilationUnit> treeList,
                 ListBuffer<Symbol.ClassSymbol> classes,
                 java.util.Map<java.lang.String,java.lang.String> origOptions,
                 java.lang.ClassLoader aptCL,
                 AnnotationProcessorFactory providedFactory,
                 java.util.Set<java.lang.Class<? extends AnnotationProcessorFactory>> productiveFactories)

importStringToPattern

java.util.regex.Pattern importStringToPattern(java.lang.String s)
Convert import-style string to regex matching that string. If the string is a valid import-style string, return a regex that won't match anything.