软件包  jdk.nashorn.api.tree

Interface RegExpLiteralTree

  • All Superinterfaces:
    ExpressionTree

    @Deprecated(since="11",
                forRemoval=true)
    public interface RegExpLiteralTree
    extends ExpressionTree
    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.
    表示源代码中的正则表达式文字。
    从以下版本开始:
    9
    • 方法详细信息

      • getPattern

        String getPattern()
        Deprecated, for removal: This API element is subject to removal in a future version.
        正则表达式模式匹配。
        结果
        正则表达式
      • getOptions

        String getOptions()
        Deprecated, for removal: This API element is subject to removal in a future version.
        正则表达式匹配选项。
        结果
        像“i”这样的选项用于ignoreCase