de.upb.hni.vmagic.concurrent
Class ForGenerateStatement

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.AbstractGenerateStatement
                  extended by de.upb.hni.vmagic.concurrent.ForGenerateStatement
All Implemented Interfaces:
DeclarativeRegion

public class ForGenerateStatement
extends AbstractGenerateStatement

For generate statement.


Constructor Summary
ForGenerateStatement(java.lang.String label, java.lang.String loopParameter, DiscreteRange range)
          Creates a for generate statement.
 
Method Summary
 Constant getParameter()
          Returns the loop parameter.
 DiscreteRange getRange()
          Returns the loop range.
 Scope getScope()
          Returns the scope of this declarative region.
 void setRange(DiscreteRange range)
          Sets the loop range.
 
Methods inherited from class de.upb.hni.vmagic.concurrent.AbstractGenerateStatement
getDeclarations, getStatements
 
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

ForGenerateStatement

public ForGenerateStatement(java.lang.String label,
                            java.lang.String loopParameter,
                            DiscreteRange range)
Creates a for generate statement.

Parameters:
label - the label
loopParameter - the identifier of the for loop parameter
range - the loop range
Method Detail

getParameter

public Constant getParameter()
Returns the loop parameter.

Returns:
the loop parameter

getRange

public DiscreteRange getRange()
Returns the loop range.

Returns:
the range

setRange

public void setRange(DiscreteRange range)
Sets the loop range.

Parameters:
range - the range

getScope

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

Returns:
the scope