de.upb.hni.vmagic.libraryunit
Class Entity

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.Entity
All Implemented Interfaces:
DeclarativeRegion, NamedEntity

public class Entity
extends LibraryUnit
implements NamedEntity

Entity declaration.


Constructor Summary
Entity(java.lang.String identifier)
          Creates a entity.
 
Method Summary
 java.util.List<EntityDeclarativeItem> getDeclarations()
          Returns the list of declarations in this entity.
 java.util.List<VhdlObjectProvider<Constant>> getGeneric()
          Returns the generic.
 java.lang.String getIdentifier()
          Returns the identifier of this entity.
 java.util.List<VhdlObjectProvider<Signal>> getPort()
          Returns the port.
 Scope getScope()
          Returns the scope of this declarative region.
 java.util.List<EntityStatement> getStatements()
          Returns the list of statements in this entity.
 void setIdentifier(java.lang.String identifier)
          Sets the identifier of this entity.
 
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

Entity

public Entity(java.lang.String identifier)
Creates a entity.

Parameters:
identifier - the identifier
Method Detail

getIdentifier

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

Specified by:
getIdentifier in interface NamedEntity
Returns:
the identifier

setIdentifier

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

Parameters:
identifier - the identifier

getDeclarations

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

Returns:
the list of declarations

getStatements

public java.util.List<EntityStatement> getStatements()
Returns the list of statements in this entity.

Returns:
the list of statements

getGeneric

public java.util.List<VhdlObjectProvider<Constant>> getGeneric()
Returns the generic.

Returns:
the list of constants in the generic of this entity

getPort

public java.util.List<VhdlObjectProvider<Signal>> getPort()
Returns the port.

Returns:
the list of signals in the port of this entity

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