uk.co.badgersinfoil.metaas.dom
Interface ASWhileStatement

All Superinterfaces:
ScriptElement, Statement, StatementContainer

public interface ASWhileStatement
extends Statement, StatementContainer

A while-loop, such as while (test()) { }.

e.g. The Java code...

ASWhileStatement whileStmt = method.newWhile("test()");
whileStmt.addStmt("trace('hello')");

...will produce the ActionScript code...

while (test()) {
        trace('hello');
}

See Also:
StatementContainer.newWhile(Expression)

Method Summary
 Statement getBody()
           
 Expression getCondition()
           
 java.lang.String getConditionString()
           
 void setCondition(Expression expr)
           
 void setCondition(java.lang.String expr)
           
 
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

getConditionString

java.lang.String getConditionString()

getCondition

Expression getCondition()

setCondition

void setCondition(java.lang.String expr)

setCondition

void setCondition(Expression expr)

getBody

Statement getBody()


Copyright © 2006-2008 David Holroyd. All Rights Reserved.