|
||||||||||
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.ExitStatement
public class ExitStatement
Exit statement.
ForStatement loop = new ForStatement("I", new Range(0, Range.Direction.TO, 127)); loop.setLabel("I_LOOP"); loop.getStatements().add(new ExitStatement(loop, new Equals(loop.getParameter(), new DecimalLiteral(100))));
I_LOOP : for I in 0 to 127 loop exit I_LOOP when I = 100; end loop;
Constructor Summary | |
---|---|
ExitStatement()
Creates an exit statement, |
|
ExitStatement(Expression condition)
Creates an exit statement with the given condition. |
|
ExitStatement(LoopStatement loop)
Creates an exit statement for the given loop. |
|
ExitStatement(LoopStatement loop,
Expression condition)
Creates an exit statement for the given loop with a condition. |
Method Summary | |
---|---|
Expression |
getCondition()
Returns the condition for this exit statement. |
LoopStatement |
getLoop()
Returns the associated loop statement. |
void |
setCondition(Expression condition)
Sets the condition for this exit 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 ExitStatement()
public ExitStatement(LoopStatement loop)
loop
- the looppublic ExitStatement(Expression condition)
condition
- the conditionpublic ExitStatement(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 |