de.upb.hni.vmagic.concurrent
Class BlockStatement

java.lang.Object
  extended by de.upb.hni.vmagic.VhdlElement
      extended by de.upb.hni.vmagic.LabeledElement
          extended by de.upb.hni.vmagic.concurrent.ConcurrentStatement
              extended by de.upb.hni.vmagic.concurrent.BlockStatement
All Implemented Interfaces:
DeclarativeRegion

public class BlockStatement
extends ConcurrentStatement
implements DeclarativeRegion

Block statement.


Constructor Summary
BlockStatement(java.lang.String label)
          Creates a block statement.
BlockStatement(java.lang.String label, Expression guardExpression)
          Creates a block statement with a guard epxression.
 
Method Summary
 java.util.List<BlockDeclarativeItem> getDeclarations()
          Returns the declarations.
 java.util.List<VhdlObjectProvider<Constant>> getGeneric()
          Returns the generic clause.
 java.util.List<AssociationElement> getGenericMap()
          Returns the generic map.
 Expression getGuardExpression()
          Returns the guard expression.
 java.util.List<VhdlObjectProvider<Signal>> getPort()
          Returns the port clause.
 java.util.List<AssociationElement> getPortMap()
          Returns the port map.
 Scope getScope()
          Returns the scope of this declarative region.
 java.util.List<ConcurrentStatement> getStatements()
          Returns the statements.
 void setGuardExpression(Expression guardExpression)
          Sets the guard expression.
 
Methods inherited from class de.upb.hni.vmagic.concurrent.ConcurrentStatement
getLabel, setLabel
 
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

BlockStatement

public BlockStatement(java.lang.String label)
Creates a block statement.

Parameters:
label - the label

BlockStatement

public BlockStatement(java.lang.String label,
                      Expression guardExpression)
Creates a block statement with a guard epxression.

Parameters:
label - the label
guardExpression - the guard expression
Method Detail

getGuardExpression

public Expression getGuardExpression()
Returns the guard expression.

Returns:
the guard expression or null if no guard expression is set

setGuardExpression

public void setGuardExpression(Expression guardExpression)
Sets the guard expression.

Parameters:
guardExpression - the guard expression or null to remove the guard expression

getGeneric

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

Returns:
a modifiable list of constants

getPort

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

Returns:
a modifiable list of signals

getGenericMap

public java.util.List<AssociationElement> getGenericMap()
Returns the generic map.

Returns:
a modifiable list of association elements

getPortMap

public java.util.List<AssociationElement> getPortMap()
Returns the port map.

Returns:
a modifiable list of association elements

getDeclarations

public java.util.List<BlockDeclarativeItem> getDeclarations()
Returns the declarations.

Returns:
a modifiable list of block declarative items

getStatements

public java.util.List<ConcurrentStatement> getStatements()
Returns the statements.

Returns:
a modifiable list of concurrent statements

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