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.declaration;
12:
13: import de.uka.ilkd.key.java.NonTerminalProgramElement;
14:
15: /**
16: * Type declaration container.
17: * taken from COMPOST and changed to achieve an immutable structure
18: */
19:
20: public interface TypeDeclarationContainer extends
21: NonTerminalProgramElement {
22:
23: /**
24: * Get the number of type declarations in this container.
25: * @return the number of type declarations.
26: */
27: int getTypeDeclarationCount();
28:
29: /*
30: Return the type declaration at the specified index in this node's
31: "virtual" type declaration array.
32: @param index an index for a type declaration.
33: @return the type declaration with the given index.
34: @exception ArrayIndexOutOfBoundsException if <tt>index</tt> is out
35: of bounds.
36: */
37: TypeDeclaration getTypeDeclarationAt(int index);
38: }
|