de.upb.hni.vmagic.libraryunit
Class PackageDeclaration

java.lang.Object
  extended by de.upb.hni.vmagic.VhdlElement
      extended by de.upb.hni.vmagic.libraryunit.LibraryUnit
          extended by de.upb.hni.vmagic.libraryunit.PackageDeclaration
All Implemented Interfaces:
DeclarativeRegion, NamedEntity

public class PackageDeclaration
extends LibraryUnit
implements NamedEntity

PackageDeclaration declaration.


Constructor Summary
PackageDeclaration(java.lang.String identifier)
          Creates a package declaration.
 
Method Summary
 java.util.List<PackageDeclarativeItem> getDeclarations()
          Returns the list of declarations in this package.
 java.lang.String getIdentifier()
          Returns the identifier of this package.
 Scope getScope()
          Returns the scope of this declarative region.
 void setIdentifier(java.lang.String identifier)
          Sets the identifier of this package.
 
Methods inherited from class de.upb.hni.vmagic.VhdlElement
getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageDeclaration

public PackageDeclaration(java.lang.String identifier)
Creates a package declaration.

Parameters:
identifier - the package identifier
Method Detail

getIdentifier

public java.lang.String getIdentifier()
Returns the identifier of this package.

Specified by:
getIdentifier in interface NamedEntity
Returns:
the identifier

setIdentifier

public void setIdentifier(java.lang.String identifier)
Sets the identifier of this package.

Parameters:
identifier - the identifer

getDeclarations

public java.util.List<PackageDeclarativeItem> getDeclarations()
Returns the list of declarations in this package.

Returns:
the list of declarations

getScope

public Scope getScope()
Description copied from interface: DeclarativeRegion
Returns the scope of this declarative region.

Specified by:
getScope in interface DeclarativeRegion
Returns:
the scope