1 /* 2 * @(#)EnhancedForLoopTree.java 1.4 06/03/14 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 /** 14 * A tree node for an "enhanced" 'for' loop statement. 15 * 16 * For example: 17 * <pre> 18 * for ( <em>variable</em> : <em>expression</em> ) 19 * <em>statement</em> 20 * </pre> 21 * 22 * @see "The Java Language Specification, 3rd ed, section 14.14.2" 23 * 24 * @author Peter von der Ahé 25 * @author Jonathan Gibbons 26 * @since 1.6 27 */ 28 public interface EnhancedForLoopTree extends StatementTree { 29 VariableTree getVariable(); 30 ExpressionTree getExpression(); 31 StatementTree getStatement(); 32 } 33