de.upb.hni.vmagic.statement
Class LoopStatement

java.lang.Object
  extended by de.upb.hni.vmagic.VhdlElement
      extended by de.upb.hni.vmagic.LabeledElement
          extended by de.upb.hni.vmagic.statement.SequentialStatement
              extended by de.upb.hni.vmagic.statement.LoopStatement
All Implemented Interfaces:
DeclarativeRegion
Direct Known Subclasses:
ForStatement, WhileStatement

public class LoopStatement
extends SequentialStatement
implements DeclarativeRegion

Loop.

Example:
vMAGIC code:
LoopStatement loop = new LoopStatement();
loop.getStatements().add(new NullStatement());
VHDL output:
loop
    null;
end loop;

Constructor Summary
LoopStatement()
          Creates a loop statement.
 
Method Summary
 Scope getScope()
          Returns the scope of this declarative region.
 java.util.List<SequentialStatement> getStatements()
          Returns the statements.
 
Methods inherited from class de.upb.hni.vmagic.statement.SequentialStatement
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

LoopStatement

public LoopStatement()
Creates a loop statement.

Method Detail

getStatements

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

Returns:
a modifiable list of sequential 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