软件包  jdk.nashorn.api.tree

Interface CaseTree

  • All Superinterfaces:

    @Deprecated(since="11",
                forRemoval=true)
    public interface CaseTree
    extends 
    Deprecated, for removal: This API element is subject to removal in a future version.
    Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.
    'switch'语句中'case'的树节点。 例如:
      case expression :
           statements
    
       default :
           statements 
    从以下版本开始:
    9
    • 方法详细信息

      • getExpression

        ExpressionTree getExpression()
        Deprecated, for removal: This API element is subject to removal in a future version.
        这个“案例”陈述的案例表达。
        结果
        当且仅当此案例为 default:default:
      • getStatements

        List<? extends StatementTree> getStatements()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回此“案例”的语句列表。
        结果
        这个'案例'的陈述清单