src/share/classes/com/sun/tools/apt/mirror/apt/AnnotationProcessorEnvironmentImpl.java

Print this page




  30 import com.sun.mirror.apt.*;
  31 import com.sun.tools.apt.mirror.apt.*;
  32 import com.sun.tools.apt.mirror.declaration.DeclarationMaker;
  33 import com.sun.tools.apt.mirror.util.*;
  34 import com.sun.tools.apt.util.Bark;
  35 import com.sun.tools.javac.util.Context;
  36 
  37 import com.sun.tools.apt.mirror.apt.FilerImpl;
  38 import com.sun.tools.apt.mirror.apt.MessagerImpl;
  39 import com.sun.tools.apt.mirror.apt.RoundStateImpl;
  40 import com.sun.tools.apt.mirror.apt.RoundCompleteEventImpl;
  41 
  42 import com.sun.tools.javac.util.Context;
  43 
  44 import java.util.*;
  45 import static com.sun.mirror.util.DeclarationVisitors.*;
  46 
  47 /*
  48  * Annotation Processor Environment implementation.
  49  */

  50 public class AnnotationProcessorEnvironmentImpl implements AnnotationProcessorEnvironment {
  51 
  52     Collection<TypeDeclaration> spectypedecls;
  53     Collection<TypeDeclaration> typedecls;
  54     Map<String, String> origOptions;
  55     DeclarationMaker declMaker;
  56     Declarations declUtils;
  57     Types typeUtils;
  58     Messager messager;
  59     FilerImpl filer;
  60     Bark bark;
  61     Set<RoundCompleteListener> roundCompleteListeners;
  62 
  63     public AnnotationProcessorEnvironmentImpl(Collection<TypeDeclaration> spectypedecls,
  64                                               Collection<TypeDeclaration> typedecls,
  65                                               Map<String, String> origOptions,
  66                                               Context context) {
  67         // Safer to copy collections before applying unmodifiable
  68         // wrapper.
  69         this.spectypedecls = Collections.unmodifiableCollection(spectypedecls);




  30 import com.sun.mirror.apt.*;
  31 import com.sun.tools.apt.mirror.apt.*;
  32 import com.sun.tools.apt.mirror.declaration.DeclarationMaker;
  33 import com.sun.tools.apt.mirror.util.*;
  34 import com.sun.tools.apt.util.Bark;
  35 import com.sun.tools.javac.util.Context;
  36 
  37 import com.sun.tools.apt.mirror.apt.FilerImpl;
  38 import com.sun.tools.apt.mirror.apt.MessagerImpl;
  39 import com.sun.tools.apt.mirror.apt.RoundStateImpl;
  40 import com.sun.tools.apt.mirror.apt.RoundCompleteEventImpl;
  41 
  42 import com.sun.tools.javac.util.Context;
  43 
  44 import java.util.*;
  45 import static com.sun.mirror.util.DeclarationVisitors.*;
  46 
  47 /*
  48  * Annotation Processor Environment implementation.
  49  */
  50 @SuppressWarnings("deprecation")
  51 public class AnnotationProcessorEnvironmentImpl implements AnnotationProcessorEnvironment {
  52 
  53     Collection<TypeDeclaration> spectypedecls;
  54     Collection<TypeDeclaration> typedecls;
  55     Map<String, String> origOptions;
  56     DeclarationMaker declMaker;
  57     Declarations declUtils;
  58     Types typeUtils;
  59     Messager messager;
  60     FilerImpl filer;
  61     Bark bark;
  62     Set<RoundCompleteListener> roundCompleteListeners;
  63 
  64     public AnnotationProcessorEnvironmentImpl(Collection<TypeDeclaration> spectypedecls,
  65                                               Collection<TypeDeclaration> typedecls,
  66                                               Map<String, String> origOptions,
  67                                               Context context) {
  68         // Safer to copy collections before applying unmodifiable
  69         // wrapper.
  70         this.spectypedecls = Collections.unmodifiableCollection(spectypedecls);