/* * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.source.tree; /** * A tree node for an 'if' statement. * * For example: *
 *   if ( condition )
 *      thenStatement
 *
 *   if ( condition )
 *       thenStatement
 *   else
 *       elseStatement
 * 
* * @jls section 14.9 * * @author Peter von der Ahé * @author Jonathan Gibbons * @since 1.6 */ @jdk.Exported public interface IfTree extends StatementTree { ExpressionTree getCondition(); StatementTree getThenStatement(); /** * @return null if this if statement has no else branch. */ StatementTree getElseStatement(); }