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.expression;
12:
13: import java.io.IOException;
14:
15: import de.uka.ilkd.key.java.Expression;
16: import de.uka.ilkd.key.java.PrettyPrinter;
17: import de.uka.ilkd.key.java.visitor.Visitor;
18: import de.uka.ilkd.key.util.ExtList;
19:
20: /**
21: * Marks an active statement as inactive.
22: */
23: public class PassiveExpression extends ParenthesizedExpression {
24:
25: /**
26: * Constructor for the transformation of COMPOST ASTs to KeY.
27: * @param children the children of this AST element as KeY classes.
28: * In this case the order of the children is IMPORTANT.
29: * May contain:
30: * several of Expression (should be one, the first is taken
31: * as parenthesized expression),
32: * Comments
33: */
34: public PassiveExpression(ExtList children) {
35: super (children);
36: }
37:
38: public PassiveExpression(Expression child) {
39: super (child);
40: }
41:
42: /** calls the corresponding method of a visitor in order to
43: * perform some action/transformation on this element
44: * @param v the Visitor
45: */
46: public void visit(Visitor v) {
47: v.performActionOnPassiveExpression(this );
48: }
49:
50: public void prettyPrint(PrettyPrinter w) throws IOException {
51: w.printPassiveExpression(this);
52: }
53: }
|