uk.co.badgersinfoil.metaas
Interface StatementContainer

All Known Subinterfaces:
ASMethod

public interface StatementContainer

Defines the common services provided by structures which can contain ActionScript 'statements'.


Method Summary
 void addComment(java.lang.String text)
          Adds a single-line comment to list of statements being generated
 void addStmt(java.lang.String statement)
          Checks the syntax of the given code, and then adds the statement to the end of the current block.
 

Method Detail

addStmt

public void addStmt(java.lang.String statement)
Checks the syntax of the given code, and then adds the statement to the end of the current block.

Throws:
ASParseException - if the syntax of the given code fragment is incorrect.

addComment

public void addComment(java.lang.String text)
Adds a single-line comment to list of statements being generated

Parameters:
text - the text of the comment (minus the initial '//') which must not include any newline characters.