de.upb.hni.vmagic.libraryunit
Class PackageBody

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.PackageBody
All Implemented Interfaces:
DeclarativeRegion

public class PackageBody
extends LibraryUnit

PackageDeclaration body.


Constructor Summary
PackageBody(PackageDeclaration pack)
          Creates a package body.
 
Method Summary
 java.util.List<PackageBodyDeclarativeItem> getDeclarations()
          Returns the list of declarations in this package body.
 PackageDeclaration getPackage()
          Returns the associated package.
 Scope getScope()
          Returns the scope of this declarative region.
 void setPackage(PackageDeclaration pack)
          Sets the associated 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

PackageBody

public PackageBody(PackageDeclaration pack)
Creates a package body.

Parameters:
pack - the associated package
Method Detail

getPackage

public PackageDeclaration getPackage()
Returns the associated package.

Returns:
the package

setPackage

public void setPackage(PackageDeclaration pack)
Sets the associated package.

Parameters:
pack - the package

getDeclarations

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

Returns:
the list of declarations

getScope

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

Returns:
the scope