uk.co.badgersinfoil.metaas.dom
Interface ASReturnStatement

All Superinterfaces:
ScriptElement, Statement

public interface ASReturnStatement
extends Statement

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();

See Also:
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

getExpressionString

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.


getExpression

Expression getExpression()

setExpression

void setExpression(java.lang.String expr)
Changes the expression that this statement would return when executed. If null is given, any expression will be removed.

Throws:
SyntaxException - if the given string is not null and is not a valid ActionScript expression.

setExpression

void setExpression(Expression expr)


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