Lines Matching defs:examples
27 * @summary provide examples of code that generate diagnostics
42 * Utility to run selected or all examples, writing results to
47 * -examples dir directory of examples. Defaults to ${test.src}/examples
48 * -raw run examples with -XDrawDiagnostics
98 File examplesDir = new File(testSrc, "examples");
110 else if (arg.equals("-examples") && (i + 1) < args.length)
142 Set<Example> examples = getExamples(examplesDir);
145 for (Example e: examples) {
149 error("Key " + k + ": no examples found");
175 * Get the complete set of examples to be checked.
225 void run(Collection<Example> examples) throws IOException {
226 for (Example e: examples) {
390 void run(Collection<Example> examples) throws IOException {
391 if (examples.size() > 1)
392 writeIndex(examples);
393 super.run(examples);
396 void writeIndex(Collection<Example> examples) throws IOException {
399 for (Example e: examples) {