1 /* 2 * ASSwitchDefault.java 3 * 4 * Copyright (c) 2007-2008 David Holroyd 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 package uk.co.badgersinfoil.metaas.dom; 20 21 /** 22 * A switch-statement <code>default:</code> label, and the list of 23 * statements immediately following it. 24 * 25 * <p>For example, given the following code...</p> 26 * 27 * <pre class="eg">switch (c) { 28 * case 1: 29 * trace("one"); 30 * break; 31 * <strong>default: 32 * trace("many");</strong> 33 *}</pre> 34 * 35 * <p>...an ASSwitchDefault instance would be available which will provide the 36 * <code>trace("many");</code> statement when its {@link #getStatementList()} 37 * method is called.</p> 38 * 39 * @see ASSwitchStatement#newDefault() 40 * @see ASSwitchStatement 41 */ 42 public interface ASSwitchDefault extends SwitchLabel { 43 // no methods 44 }