Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
QuickReferenceWriter |
|
| 1.0;1 |
1 | /******************************************************************************* | |
2 | * Copyright (c) 2008 Ketan Padegaonkar and others. | |
3 | * All rights reserved. This program and the accompanying materials | |
4 | * are made available under the terms of the Eclipse Public License v1.0 | |
5 | * which accompanies this distribution, and is available at | |
6 | * http://www.eclipse.org/legal/epl-v10.html | |
7 | * | |
8 | * Contributors: | |
9 | * Ketan Padegaonkar - initial API and implementation | |
10 | *******************************************************************************/ | |
11 | package org.eclipse.swtbot.generator; | |
12 | ||
13 | import java.io.PrintStream; | |
14 | import java.util.Set; | |
15 | ||
16 | /** | |
17 | * @author Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com> | |
18 | * @version $Id$ | |
19 | */ | |
20 | public class QuickReferenceWriter implements HamcrestWriter { | |
21 | ||
22 | private final PrintStream out; | |
23 | ||
24 | 0 | public QuickReferenceWriter(PrintStream out) { |
25 | 0 | this.out = out; |
26 | 0 | } |
27 | ||
28 | public void writeMethod(String method) { | |
29 | 0 | out.println(method.split("\n")[0]); //$NON-NLS-1$ |
30 | 0 | } |
31 | ||
32 | public void writeHeader(Set<String> imports) { | |
33 | ||
34 | 0 | } |
35 | ||
36 | public void writeFooter() { | |
37 | ||
38 | 0 | } |
39 | ||
40 | public void flush() { | |
41 | ||
42 | 0 | } |
43 | ||
44 | public void close() { | |
45 | ||
46 | 0 | } |
47 | ||
48 | public void beginClassDefinition() { | |
49 | ||
50 | 0 | } |
51 | ||
52 | public void beginConstructors() { | |
53 | ||
54 | 0 | } |
55 | ||
56 | } |