|
||||||||||
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.NextStatement
public class NextStatement
Next statement.
LoopStatement loop = new LoopStatement(); loop.setLabel("INF_LOOP"); loop.getStatements().add(new NextStatement(loop)); loop.getStatements().add(new ReportStatement("not reached"));
INF_LOOP : loop next INF_LOOP; report "not reached"; end loop;
Constructor Summary | |
---|---|
NextStatement()
Creates a next statement. |
|
NextStatement(Expression condition)
Creates a next statement with the given condition. |
|
NextStatement(LoopStatement loop)
Creates a next statement for the given loop. |
|
NextStatement(LoopStatement loop,
Expression condition)
Creates a next statement for the given loop with a condition. |
Method Summary | |
---|---|
Expression |
getCondition()
Returns the condition for this next statement. |
LoopStatement |
getLoop()
Returns the associated loop statement. |
void |
setCondition(Expression condition)
Sets the condition for this next statement. |
void |
setLoop(LoopStatement loop)
Sets the associated loop statement. |
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 NextStatement()
public NextStatement(LoopStatement loop)
loop
- the looppublic NextStatement(Expression condition)
condition
- the conditionpublic NextStatement(LoopStatement loop, Expression condition)
loop
- the loopcondition
- the conditionMethod Detail |
---|
public Expression getCondition()
public void setCondition(Expression condition)
condition
- the conditionpublic LoopStatement getLoop()
null
if no loop is setpublic void setLoop(LoopStatement loop)
loop
- the loop statement or null
to remove loop
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |