|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ASReturnStatement
A return statement, such as return;
or return res;
.
Instances can be created using StatementContainer.newReturn(Expression)
:
method.newReturn();
Will result in ActionScript code like,
return;
or, with an expression,this Java code,
method.newReturn("doIt()");
will result in ActionScript code like,
return doIt();
StatementContainer.newReturn()
,
StatementContainer.newReturn(Expression)
Method Summary | |
---|---|
Expression |
getExpression()
|
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(Expression expr)
|
void |
setExpression(java.lang.String expr)
Changes the expression that this statement would return when executed. |
Method Detail |
---|
java.lang.String getExpressionString()
Expression getExpression()
void setExpression(java.lang.String expr)
SyntaxException
- if the given string is not null and is not
a valid ActionScript expression.void setExpression(Expression expr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |