01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: //
09: //
10:
11: package de.uka.ilkd.key.java.statement;
12:
13: import de.uka.ilkd.key.java.JavaProgramElement;
14: import de.uka.ilkd.key.java.PrettyPrinter;
15: import de.uka.ilkd.key.java.Statement;
16: import de.uka.ilkd.key.java.TerminalProgramElement;
17: import de.uka.ilkd.key.java.visitor.Visitor;
18: import de.uka.ilkd.key.util.ExtList;
19:
20: /**
21: * Empty statement.
22: * @author <TT>AutoDoc</TT>
23: */
24: public class EmptyStatement extends JavaProgramElement implements
25: Statement, TerminalProgramElement {
26:
27: /**
28: * Constructor for the transformation of COMPOST ASTs to KeY.
29: * @param children the children of this AST element as KeY classes.
30: */
31: public EmptyStatement(ExtList children) {
32: super (children);
33: }
34:
35: /**
36: * Constructor for the transformation of COMPOST ASTs to KeY.
37: * May contain: Comments
38: */
39: public EmptyStatement() {
40: super ();
41: }
42:
43: /** calls the corresponding method of a visitor in order to
44: * perform some action/transformation on this element
45: * @param v the Visitor
46: */
47: public void visit(Visitor v) {
48: v.performActionOnEmptyStatement(this );
49: }
50:
51: public void prettyPrint(PrettyPrinter p) throws java.io.IOException {
52: p.printEmptyStatement(this);
53: }
54:
55: }
|