|
||||||||||
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.IfStatement
public class IfStatement
If statement.
IfStatement statement = new IfStatement(Standard.BOOLEAN_FALSE); statement.getStatements().add(new ReportStatement("if part")); statement.createElsifPart(Standard.BOOLEAN_TRUE). getStatements().add(new ReportStatement("elsif part")); statement.getElseStatements().add(new ReportStatement("else part"));
if FALSE then report "if part"; elsif TRUE then report "elsif part"; else report "else part"; end if;
Nested Class Summary | |
---|---|
class |
IfStatement.ElsifPart
Elsif part in an if statement. |
Constructor Summary | |
---|---|
IfStatement(Expression condition)
Creates an if statement. |
Method Summary | |
---|---|
IfStatement.ElsifPart |
createElsifPart(Expression condition)
Creates a elsif part and adds it to this if statement. |
Expression |
getCondition()
Returns the if condition. |
java.util.List<SequentialStatement> |
getElseStatements()
Returns the statement in the else part of the if statement. |
java.util.List<IfStatement.ElsifPart> |
getElsifParts()
Returns the elsif parts. |
java.util.List<SequentialStatement> |
getStatements()
Returns the statement. |
void |
setCondition(Expression condition)
Returns the if condition. |
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 IfStatement(Expression condition)
condition
- the if conditionMethod Detail |
---|
public Expression getCondition()
public void setCondition(Expression condition)
condition
- the conditionpublic java.util.List<SequentialStatement> getStatements()
public java.util.List<SequentialStatement> getElseStatements()
public IfStatement.ElsifPart createElsifPart(Expression condition)
condition
- the condition for the elsif part
public java.util.List<IfStatement.ElsifPart> getElsifParts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |