uk.co.badgersinfoil.metaas.dom
Interface ASExpressionStatement

All Superinterfaces:
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");


Method Summary
 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

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-2007 David Holroyd. All Rights Reserved.