1 /* |
1 /* |
2 * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
43 * |
43 * |
44 * @author Peter von der Ahé |
44 * @author Peter von der Ahé |
45 * @author Jonathan Gibbons |
45 * @author Jonathan Gibbons |
46 * @since 1.6 |
46 * @since 1.6 |
47 */ |
47 */ |
|
48 @jdk.Supported |
48 public interface IfTree extends StatementTree { |
49 public interface IfTree extends StatementTree { |
49 ExpressionTree getCondition(); |
50 ExpressionTree getCondition(); |
50 StatementTree getThenStatement(); |
51 StatementTree getThenStatement(); |
51 /** |
52 /** |
52 * @return null if this if statement has no else branch. |
53 * @return null if this if statement has no else branch. |