uk.co.badgersinfoil.metaas.dom
Interface ASSwitchDefault

All Superinterfaces:
ScriptElement, StatementContainer, SwitchLabel

public interface ASSwitchDefault
extends SwitchLabel

A switch-statement default: 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 ASSwitchDefault instance would be available which will provide the trace("many"); statement when its StatementContainer.getStatementList() method is called.

See Also:
ASSwitchStatement.newDefault(), ASSwitchStatement

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



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