-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathAbstractOpSpec.java
41 lines (28 loc) · 1.04 KB
/
AbstractOpSpec.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/******************************
* Copyright (c) 2003,2019 Kevin Lano
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
* *****************************/
import java.io.*;
abstract class AbstractOpSpec
{ String prefix = "";
public void setPrefix(String pre)
{ prefix = pre; }
public void display()
{ display(new PrintWriter(System.out)); }
public void displayImp()
{ displayImp(new PrintWriter(System.out)); }
public void displayJava()
{ displayJava(new PrintWriter(System.out)); }
abstract public void display(PrintWriter out);
abstract public void displayImp(PrintWriter out);
abstract public void displayJava(PrintWriter out);
public void displayJavaImp()
{ displayJava(); }
public void displayJavaImp(PrintWriter out)
{ displayJava(out); }
public void simplify() { } // default implementation
}