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: import de.uka.ilkd.key.java.declaration.ParameterDeclaration;
14:
15: /**
16: * Describes program elements that contain
17: * {@link recoder.java.declaration.ParameterDeclaration}s.
18: * taken from RECODER and changed to achieve an immutable structure
19: */
20:
21: public interface ParameterContainer extends StatementContainer {
22:
23: /**
24: * Get the number of parameters in this container.
25: * @return the number of parameters.
26: */
27: int getParameterDeclarationCount();
28:
29: /*
30: Return the parameter declaration at the specified index in this node's
31: "virtual" parameter declaration array.
32: @param index an index for a parameter declaration.
33: @return the parameter declaration with the given index.
34: @exception ArrayIndexOutOfBoundsException if <tt>index</tt> is out
35: of bounds.
36: */
37: ParameterDeclaration getParameterDeclarationAt(int index);
38: }
|