001 // This file is part of the RECODER library and protected by the LGPL.
002
003 package recoder.java.declaration;
004
005 import recoder.java.NonTerminalProgramElement;
006
007 /**
008 * Type declaration container.
009 *
010 * @author <TT>AutoDoc</TT>
011 */
012
013 public interface TypeDeclarationContainer extends NonTerminalProgramElement {
014
015 /**
016 * Get the number of type declarations in this container.
017 *
018 * @return the number of type declarations.
019 */
020 int getTypeDeclarationCount();
021
022 /*
023 * Return the type declaration at the specified index in this node's
024 * "virtual" type declaration array. @param index an index for a type
025 * declaration. @return the type declaration with the given index.
026 * @exception ArrayIndexOutOfBoundsException if <tt> index </tt> is out of
027 * bounds.
028 */
029 TypeDeclaration getTypeDeclarationAt(int index);
030 }