软件包  jdk.nashorn.api.tree

Interface CatchTree

  • All Superinterfaces:

    @Deprecated(since="11",            forRemoval=true)public interface CatchTreeextends 
    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.
    'try'语句中'catch'块的树节点。 例如:
      catch ( parameter )       block 
    从以下版本开始:
    9
    • 方法详细信息

      • getParameter

        ExpressionTree getParameter()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回捕获的异常的catch参数标识符或参数绑定模式。
        结果
        catch参数标识符或参数绑定模式
      • getBlock

        BlockTree getBlock()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回此catch块的代码块。
        结果
        代码块
      • getCondition

        ExpressionTree getCondition()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回可选的catch条件表达式。 如果这是无条件的catch语句,则为null。
        结果
        可选的catch条件表达式。