public IdeProcessingEnvImpl(
     IdeAnnotationProcessorManager dispatchManager, IJavaProject jproject, Compiler compiler) {
   _dispatchManager = dispatchManager;
   _javaProject = jproject;
   _compiler = compiler;
   _aptProject = AptPlugin.getAptProject(jproject);
   _filer = new IdeFilerImpl(_dispatchManager, this);
   _messager = new IdeMessagerImpl(_dispatchManager, this);
 }
예제 #2
0
 public BaseProcessorEnv(
     CompilationUnit astCompilationUnit, IFile file, IJavaProject javaProj, Phase phase) {
   _astRoot = astCompilationUnit;
   _file = file;
   _javaProject = javaProj;
   _phase = phase;
   _options = initOptions(javaProj);
   _modelCompUnit2astCompUnit = new HashMap<ICompilationUnit, CompilationUnit>();
   _typeBinding2ModelCompUnit = new HashMap<ITypeBinding, ICompilationUnit>();
   _aptProject = AptPlugin.getAptProject(javaProj);
 }