public static TestRun compileAndCheck( Iterable<? extends JavaFileObject> files, String processor, String[] options) { List<String> opts = new LinkedList<String>(); if (processor != null) { opts.add("-processor"); opts.add(processor); } opts.add("-source"); opts.add("1.8"); for (String option : options) opts.add(option); TestInput input = new TestInput(files, Collections.<String>emptySet(), opts.toArray(new String[opts.size()])); return input.run(); }
@NotNull @Override public <K, V> Collection<K> getKeys(WritableSlice<K, V> slice) { assert slice.isCollective(); return Collections.emptySet(); }