|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ASDoWhileStatement
A do-while loop, such as do { } while (condition);
.
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());
StatementContainer.newDoWhile(String)
Method Summary | |
---|---|
Expression |
getCondition()
|
java.lang.String |
getConditionString()
Returns a string representation of the loop termination condition expression. |
void |
setCondition(Expression expr)
|
void |
setCondition(java.lang.String expr)
Sets the loop termination condition for this do-while loop. |
Methods inherited from interface uk.co.badgersinfoil.metaas.dom.StatementContainer |
---|
addComment, addStmt, containsCode, getStatementList, newBreak, newContinue, newDeclaration, newDeclaration, newDefaultXMLNamespace, newDoWhile, newDoWhile, newExprStmt, newExprStmt, newFor, newFor, newForEachIn, newForEachIn, newForIn, newForIn, newIf, newIf, newReturn, newReturn, newReturn, newSuper, newSwitch, newSwitch, newThrow, newTryCatch, newTryFinally, newWhile, newWhile, newWith, newWith |
Method Detail |
---|
java.lang.String getConditionString()
e.g. given the loop,
do { nothing(); } while (test());
This method would return "test()"
.
Expression getCondition()
void setCondition(java.lang.String expr)
SyntaxException
- if the given
string is not a valid ActionScript expression.void setCondition(Expression expr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |