|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.upb.hni.vmagic.VhdlElement
de.upb.hni.vmagic.LabeledElement
de.upb.hni.vmagic.statement.SequentialStatement
de.upb.hni.vmagic.statement.LoopStatement
de.upb.hni.vmagic.statement.ForStatement
public class ForStatement
For loop.
ForStatement loop = new ForStatement("I", new Range(0, Range.Direction.TO, 127)); loop.getStatements().add(new NullStatement());
for I in 0 to 127 loop null; end loop;
Constructor Summary | |
---|---|
ForStatement(java.lang.String loopParameter,
DiscreteRange range)
Creates a for loop. |
Method Summary | |
---|---|
Constant |
getParameter()
Returns 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.statement.LoopStatement |
---|
getStatements |
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 |
---|
public ForStatement(java.lang.String loopParameter, DiscreteRange range)
loopParameter
- the identifier of the loop parameterrange
- the loop rangeMethod Detail |
---|
public Constant getParameter()
public DiscreteRange getRange()
public void setRange(DiscreteRange range)
range
- the rangepublic Scope getScope()
DeclarativeRegion
getScope
in interface DeclarativeRegion
getScope
in class LoopStatement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |