de.upb.hni.vmagic.concurrent
Class IfGenerateStatement

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

public class IfGenerateStatement
extends AbstractGenerateStatement

If generate statement.


Constructor Summary
IfGenerateStatement(java.lang.String label, Expression condition)
          Creates an if generate statement.
 
Method Summary
 Expression getCondition()
          Returns the if condition.
 Scope getScope()
          Returns the scope of this declarative region.
 void setCondition(Expression condition)
          Sets the if condition.
 
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

IfGenerateStatement

public IfGenerateStatement(java.lang.String label,
                           Expression condition)
Creates an if generate statement.

Parameters:
label - the label
condition - the if condition
Method Detail

getCondition

public Expression getCondition()
Returns the if condition.

Returns:
the condition

setCondition

public void setCondition(Expression condition)
Sets the if condition.

Parameters:
condition - the condition

getScope

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

Returns:
the scope