|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ASDoWhileStatement
Obtained from StatementContainer.newDoWhile(String)
, represents
a do { } while (condition);
construct.
e.g. The following Java code,
ASDoWhileStatement doWhile = method.newDoWhile("test()"); doWhile.addStmt("trace('still testing')");
Will result in AS which looks like this,
do { trace('still testing'); } while (test());
Method Summary | |
---|---|
java.lang.String |
getConditionString()
Returns a string representation of the loop termination condition expression. |
void |
setCondition(java.lang.String string)
Sets the loop termination condition for this do-while loop. |
Methods inherited from interface uk.co.badgersinfoil.metaas.dom.StatementContainer |
---|
addComment, addStmt, containsCode, getStatementList, newDeclaration, newDoWhile, newExprStmt, newFor, newForEachIn, newForIn, newIf, newReturn, newSwitch, newWhile, newWith |
Method Detail |
---|
java.lang.String getConditionString()
e.g. given the loop,
do { nothing(); } while (test());
This method would return "test()"
.
void setCondition(java.lang.String string)
SyntaxException
- if the given
string is not a valid ActionScript expression.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |