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;
12:
13: /**
14: * Expression container.
15: * taken from COMPOST and changed to achieve an immutable structure
16: */
17:
18: public interface ExpressionContainer extends NonTerminalProgramElement {
19:
20: /**
21: * Get the number of expressions in this container.
22: * @return the number of expressions.
23: */
24: int getExpressionCount();
25:
26: /*
27: Return the expression at the specified index in this node's
28: "virtual" expression array.
29: @param index an index for an expression.
30: @return the expression with the given index.
31: @exception ArrayIndexOutOfBoundsException if <tt>index</tt> is out
32: of bounds.
33: */
34: Expression getExpressionAt(int index);
35: }
|