langtools/src/share/classes/com/sun/source/tree/ConditionalExpressionTree.java
changeset 25287 d2440361b323
parent 20612 4761f3ff7afb
equal deleted inserted replaced
25286:09b9113ad68a 25287:d2440361b323
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2014, 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
    39  * @author Jonathan Gibbons
    39  * @author Jonathan Gibbons
    40  * @since 1.6
    40  * @since 1.6
    41  */
    41  */
    42 @jdk.Exported
    42 @jdk.Exported
    43 public interface ConditionalExpressionTree extends ExpressionTree {
    43 public interface ConditionalExpressionTree extends ExpressionTree {
       
    44     /**
       
    45      * Returns the condition.
       
    46      * @return the condition
       
    47      */
    44     ExpressionTree getCondition();
    48     ExpressionTree getCondition();
       
    49 
       
    50     /**
       
    51      * Returns the expression to be evaluated if the condition is true.
       
    52      * @return the expression to be evaluated if the condition is true
       
    53      */
    45     ExpressionTree getTrueExpression();
    54     ExpressionTree getTrueExpression();
       
    55 
       
    56     /**
       
    57      * Returns the expression to be evaluated if the condition is false.
       
    58      * @return the expression to be evaluated if the condition is false
       
    59      */
    46     ExpressionTree getFalseExpression();
    60     ExpressionTree getFalseExpression();
    47 }
    61 }