com.sun.tools.apt.comp
Class Apt
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<A>
com.sun.tools.javac.util.ListBuffer<Env<AttrContext>>
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. |
|
Constructor Summary |
protected |
Apt(Context context)
Create a new apt list. |
| 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 |
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
Apt
protected Apt(Context context)
- Create a new apt list.
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.