|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ASSwitchCase
A switch-statement case
-label, and the list of statements
immediately following it.
For example, given the following code...
switch (c) { case 1: trace("one"); break; default: trace("many"); }
...an ASSwitchCase would be available with label-value of 1
which will provide the trace("one");
and break;
statements when its StatementContainer.getStatementList()
method is called.
ASSwitchStatement.newCase(String)
,
ASSwitchStatement
Method Summary | |
---|---|
Expression |
getLabelValue()
Returns a the value expression for this label. |
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, newBreak, newContinue, newDeclaration, newDeclaration, newDefaultXMLNamespace, newDoWhile, newDoWhile, newExprStmt, newExprStmt, newFor, newFor, newForEachIn, newForEachIn, newForIn, newForIn, newIf, newIf, newReturn, newReturn, newReturn, newSuper, newSwitch, newSwitch, newThrow, newTryCatch, newTryFinally, newWhile, newWhile, newWith, newWith |
Method Detail |
---|
Expression getLabelValue()
java.lang.String getLabelValueString()
case 42:
, this method
would return the string "42"
.
void setLabelValue(java.lang.String constant)
SyntaxException
- if the given
string is not a valid ActionScript expression.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |