1 /* 2 * @(#)LabeledStatementTree.java 1.3 06/07/11 3 * 4 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 * 7 * Use and Distribution is subject to the Java Research License available 8 * at <http://wwws.sun.com/software/communitysource/jrl.html>. 9 */ 10 11 package com.sun.source.tree; 12 13 import javax.lang.model.element.Name; 14 15 /** 16 * A tree node for a labeled statement. 17 * 18 * For example: 19 * <pre> 20 * <em>label</em> : <em>statement</em> 21 * </pre> 22 * 23 * @see "The Java Language Specification, 3rd ed, section 14.7" 24 * 25 * @author Peter von der Ahé 26 * @author Jonathan Gibbons 27 * @since 1.6 28 */ 29 public interface LabeledStatementTree extends StatementTree { 30 Name getLabel(); 31 StatementTree getStatement(); 32 } 33