|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ASReturnStatement
A statement that exits the current ActionScript method or function, optionally returning a value to the caller.
Instances can be created using StatementContainer.newReturn(String)
:
ASExpressionStatement stmt = method.newReturn(null);
Will result in ActionScript code like,
return;
or, with an expression,this Java code,
ASExpressionStatement stmt = method.newReturn("doIt()");
will result in ActionScript code like,
return doIt();
Method Summary | |
---|---|
java.lang.String |
getExpressionString()
Returns a string representation of the expression who's value this statement would return when executed, or null if there is no such expression. |
void |
setExpression(java.lang.String expr)
Changes the expression that this statement would return when executed. |
Method Detail |
---|
java.lang.String getExpressionString()
void setExpression(java.lang.String expr)
SyntaxException
- if the given string is not null and is not
a valid ActionScript expression.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |