JavacFiler(Context context) { this.context = context; fileManager = context.get(JavaFileManager.class); log = Log.instance(context); fileObjectHistory = synchronizedSet(new LinkedHashSet<FileObject>()); generatedSourceNames = synchronizedSet(new LinkedHashSet<String>()); generatedSourceFileObjects = synchronizedSet(new LinkedHashSet<JavaFileObject>()); generatedClasses = synchronizedMap(new LinkedHashMap<String, JavaFileObject>()); openTypeNames = synchronizedSet(new LinkedHashSet<String>()); aggregateGeneratedSourceNames = new LinkedHashSet<String>(); aggregateGeneratedClassNames = new LinkedHashSet<String>(); lint = (Options.instance(context)).lint("processing"); }
JavacFiler(Context context) { this.context = context; fileManager = context.get(JavaFileManager.class); log = Log.instance(context); fileObjectHistory = synchronizedSet(new LinkedHashSet<FileObject>()); generatedSourceNames = synchronizedSet(new LinkedHashSet<String>()); generatedSourceFileObjects = synchronizedSet(new LinkedHashSet<JavaFileObject>()); generatedClasses = synchronizedMap(new LinkedHashMap<String, JavaFileObject>()); openTypeNames = synchronizedSet(new LinkedHashSet<String>()); aggregateGeneratedSourceNames = new LinkedHashSet<String>(); aggregateGeneratedClassNames = new LinkedHashSet<String>(); lint = (Options.instance(context)).lint("processing"); }
protected Lint(Context context) { // initialize values according to the lint options Options options = Options.instance(context); values = EnumSet.noneOf(LintCategory.class); for (Map.Entry<String, LintCategory> e: map.entrySet()) { if (options.lint(e.getKey())) values.add(e.getValue()); } suppressedValues = EnumSet.noneOf(LintCategory.class); context.put(lintKey, this); augmentor = new AugmentVisitor(context); }
protected Lint(Context context) { // initialize values according to the lint options Options options = Options.instance(context); values = EnumSet.noneOf(LintCategory.class); for (Map.Entry<String, LintCategory> e: map.entrySet()) { if (options.lint(e.getKey())) values.add(e.getValue()); } suppressedValues = EnumSet.noneOf(LintCategory.class); context.put(lintKey, this); augmentor = new AugmentVisitor(context); }
protected Lint(Context context) { // initialize values according to the lint options Options options = Options.instance(context); values = EnumSet.noneOf(LintCategory.class); for (Map.Entry<String, LintCategory> e: map.entrySet()) { if (options.lint(e.getKey())) values.add(e.getValue()); } suppressedValues = EnumSet.noneOf(LintCategory.class); context.put(lintKey, this); augmentor = new AugmentVisitor(context); }
protected Lint(Context context) { // initialize values according to the lint options Options options = Options.instance(context); values = EnumSet.noneOf(LintCategory.class); for (Map.Entry<String, LintCategory> e: map.entrySet()) { if (options.lint(e.getKey())) values.add(e.getValue()); } suppressedValues = EnumSet.noneOf(LintCategory.class); context.put(lintKey, this); augmentor = new AugmentVisitor(context); }
public JavacProcessingEnvironment(Context context, Iterable<? extends Processor> processors) { options = Options.instance(context); this.context = context; log = Log.instance(context); source = Source.instance(context); printProcessorInfo = options.get("-XprintProcessorInfo") != null; printRounds = options.get("-XprintRounds") != null; verbose = options.get("-verbose") != null; lint = options.lint("processing"); procOnly = options.get("-proc:only") != null || options.get("-Xprint") != null; fatalErrors = options.get("fatalEnterError") != null; platformAnnotations = initPlatformAnnotations(); // Initialize services before any processors are initialzied // in case processors use them. filer = new JavacFiler(context); messager = new JavacMessager(context, this); elementUtils = new JavacElements(context); typeUtils = new JavacTypes(context); processorOptions = initProcessorOptions(context); unmatchedProcessorOptions = initUnmatchedProcessorOptions(); initProcessorIterator(context, processors); }
public JavacProcessingEnvironment(Context context, Iterable<? extends Processor> processors) { options = Options.instance(context); this.context = context; log = Log.instance(context); source = Source.instance(context); printProcessorInfo = options.get("-XprintProcessorInfo") != null; printRounds = options.get("-XprintRounds") != null; verbose = options.get("-verbose") != null; lint = options.lint("processing"); procOnly = options.get("-proc:only") != null || options.get("-Xprint") != null; fatalErrors = options.get("fatalEnterError") != null; platformAnnotations = initPlatformAnnotations(); // Initialize services before any processors are initialzied // in case processors use them. filer = new JavacFiler(context); messager = new JavacMessager(context, this); elementUtils = new JavacElements(context); typeUtils = new JavacTypes(context); processorOptions = initProcessorOptions(context); unmatchedProcessorOptions = initUnmatchedProcessorOptions(); initProcessorIterator(context, processors); }