uk.co.badgersinfoil.metaas.dom
Interface ASExpressionStatement

All Superinterfaces:
ScriptElement, Statement

public interface ASExpressionStatement
extends Statement

A simple statement which evaluates an expression.

Instances can be created using StatementContainer.newExprStmt(String):

ASExpressionStatement stmt = method.newExprStmt("trace(\"hello world\")");

Will result in the ActionScript code,

trace("hello world");

See Also:
StatementContainer.newExprStmt(Expression)

Method Summary
 Expression getExpression()
          Returns the expression this statement would evaluate when run.
 java.lang.String getExpressionString()
          Returns a string representation of the expression this statement would evaluate when run.
 void setExpression(java.lang.String expr)
          Changes the expression that this statement would evaluate when run.
 

Method Detail

getExpression

Expression getExpression()
Returns the expression this statement would evaluate when run.


getExpressionString

java.lang.String getExpressionString()
Returns a string representation of the expression this statement would evaluate when run.


setExpression

void setExpression(java.lang.String expr)
Changes the expression that this statement would evaluate when run.

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


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