uk.co.badgersinfoil.metaas.dom
Interface ASSwitchCase

All Superinterfaces:
StatementContainer

public interface ASSwitchCase
extends StatementContainer

Obtained from ASSwitchStatement.newCase(String), ASSwitchCase represents a switch-statement case-label, and the list of statements immediately following it.

See Also:
ASSwitchStatement

Method Summary
 java.lang.String getLabelValueString()
          Returns a string representation of the value expression for this label.
 void setLabelValue(java.lang.String constant)
          Changes the value expression for this case label.
 
Methods inherited from interface uk.co.badgersinfoil.metaas.dom.StatementContainer
addComment, addStmt, containsCode, getStatementList, newDeclaration, newDoWhile, newExprStmt, newFor, newForEachIn, newForIn, newIf, newReturn, newSwitch, newWhile, newWith
 

Method Detail

getLabelValueString

java.lang.String getLabelValueString()
Returns a string representation of the value expression for this label. e.g. given the label case 42:, this method would return the string "42".


setLabelValue

void setLabelValue(java.lang.String constant)
Changes the value expression for this case label.

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


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