Home » openjdk-7 » com.sun.tools » apt » comp » [javadoc | source]
com.sun.tools.apt.comp
public class: Apt [javadoc | source]
java.lang.Object
   java.util.AbstractCollection
      java.util.AbstractQueue<A>
         com.sun.tools.javac.util.ListBuffer<AttrContext>
            com.sun.tools.apt.comp.Apt

All Implemented Interfaces:
    Queue, Collection

Apt compiler phase.

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 Class Summary:
static class  Apt.AptTreeScanner  Used to scan javac trees to build data structures needed for bootstrapping the apt environment. In particular:
  • Generate list of canonical names of annotation types that appear in source files given on the command line
  • Collect list of javac symbols representing source files given on the command line
 
Field Summary
 Set<String> genSourceFileNames     
 Set<String> genClassFileNames    List of names of generated class files. 
 AptEnv aptenv     
protected static final  Key<Apt> aptKey    The context key for the todo list. 
Fields inherited from com.sun.tools.javac.util.ListBuffer:
elems,  last,  count,  shared
Constructor:
 protected Apt(Context context) 
    Create a new apt list.
Method from com.sun.tools.apt.comp.Apt Summary:
computeAnnotationSet,   computeAnnotationSet,   getClassFileNames,   getSourceFileNames,   importStringToPattern,   instance,   main
Methods from 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 from java.util.AbstractQueue:
add,   addAll,   clear,   element,   remove
Methods from java.util.AbstractCollection:
add,   addAll,   clear,   contains,   containsAll,   isEmpty,   iterator,   remove,   removeAll,   retainAll,   size,   toArray,   toArray,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.tools.apt.comp.Apt Detail:
 Set<String> computeAnnotationSet(Collection<ClassSymbol> classSymbols) 
  void computeAnnotationSet(Symbol symbol,
    Set<String> annotationSet) 
 public Set<String> getClassFileNames() 
 public Set<String> getSourceFileNames() 
 Pattern importStringToPattern(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.
 public static Apt instance(Context context) 
    Get the Apt instance for this context.
 public  void main(List<JCCompilationUnit> treeList,
    ListBuffer<ClassSymbol> classes,
    Map<String, String> origOptions,
    ClassLoader aptCL,
    AnnotationProcessorFactory providedFactory,
    Set<AnnotationProcessorFactory> productiveFactories)