src/jdk.compiler/share/classes/com/sun/source/tree/CaseTree.java
changeset 57706 7ac414640ad5
parent 54817 ef73702a906e
child 58109 ee07de0d2c16
child 58713 ad69fd32778e
equal deleted inserted replaced
57705:7cf02b2c1455 57706:7ac414640ad5
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2019, 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
    47  */
    47  */
    48 public interface CaseTree extends Tree {
    48 public interface CaseTree extends Tree {
    49     /**
    49     /**
    50      * Returns the expression for the case, or
    50      * Returns the expression for the case, or
    51      * {@code null} if this is the default case.
    51      * {@code null} if this is the default case.
    52      * If this case has multiple lables, returns the first label.
    52      * If this case has multiple labels, returns the first label.
    53      * @return the expression for the case, or null
    53      * @return the expression for the case, or null
    54      */
    54      */
    55     ExpressionTree getExpression();
    55     ExpressionTree getExpression();
    56 
    56 
    57     /**
    57     /**