Class NormalInterfaceDeclaration

All Implemented Interfaces:
ASTNode, TypeDeclaration, TypeDeclarationContainer

public class NormalInterfaceDeclaration extends AbstractTypeDeclarationNode
An interface declaration. Its structure is as follows:
 NormalInterfaceDeclaration:
    'interface' Identifier [TypeParameters] ['extends' TypeList] InterfaceBody
 
Version:
1.0
  • Field Details

    • extendedList

      private List<Type> extendedList
  • Constructor Details

    • NormalInterfaceDeclaration

      public NormalInterfaceDeclaration(Scanner s, int offs, String name)
  • Method Details

    • addExtended

      public void addExtended(Type extended)
      Adds a type this interface extends.
      Parameters:
      extended - The extended type.
    • getExtendedCount

      public int getExtendedCount()
    • getExtendedIterator

      public Iterator<Type> getExtendedIterator()
    • getTypeString

      public String getTypeString()
      Description copied from interface: TypeDeclaration
      Returns the type of this type declaration, as a string.
      Returns:
      The type.