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.operator;
12:
13: import de.uka.ilkd.key.java.PrettyPrinter;
14: import de.uka.ilkd.key.java.expression.Assignment;
15: import de.uka.ilkd.key.java.visitor.Visitor;
16: import de.uka.ilkd.key.util.ExtList;
17:
18: /**
19: * Divide assignment.
20: * @author <TT>AutoDoc</TT>
21: */
22:
23: public class DivideAssignment extends Assignment {
24:
25: /**
26: * Divide assignment.
27: * @param children an ExtList with all children of this node
28: * the first children in list will be the one on the left
29: * side, the second the one on the right side.
30: */
31:
32: public DivideAssignment(ExtList children) {
33: super (children);
34: }
35:
36: /**
37: * Get arity.
38: * @return the int value.
39: */
40:
41: public int getArity() {
42: return 2;
43: }
44:
45: /**
46: * Get precedence.
47: * @return the int value.
48: */
49:
50: public int getPrecedence() {
51: return 13;
52: }
53:
54: /**
55: * Get notation.
56: * @return the int value.
57: */
58:
59: public int getNotation() {
60: return INFIX;
61: }
62:
63: /** calls the corresponding method of a visitor in order to
64: * perform some action/transformation on this element
65: * @param v the Visitor
66: */
67: public void visit(Visitor v) {
68: v.performActionOnDivideAssignment(this );
69: }
70:
71: public void prettyPrint(PrettyPrinter p) throws java.io.IOException {
72: p.printDivideAssignment(this);
73: }
74: }
|