|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ASWithStatement
A with-statement, such as with (expr) { }
.
e.g.
ASWithStatement stmt = method.newWith("myObject"); stmt.newExprStmt("trace(property)");
will result in ActionScript code like,
with (myObject)) { trace(property); }
StatementContainer.newWith(Expression)
Method Summary | |
---|---|
Statement |
getBody()
|
Expression |
getScope()
|
java.lang.String |
getScopeString()
Returns a string representation of the expression who's value will be used as new scope for the execution of the statements in the body of this with-statement. |
void |
setScope(Expression expr)
|
void |
setScope(java.lang.String expr)
Changes the expression who's value will be used as new scope for the execution of the statements in the body of this with-statement. |
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 getScopeString()
Expression getScope()
void setScope(java.lang.String expr)
SyntaxException
- if the given string is not a valid
ActionScript expression.void setScope(Expression expr)
Statement getBody()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |