软件包  jdk.nashorn.api.tree

Interface DiagnosticListener

  • Functional Interface:
    这是一个功能接口,因此可以用作lambda表达式或方法引用的赋值目标。

    @Deprecated(since="11",
                forRemoval=true)
    @FunctionalInterface
    public interface DiagnosticListener
    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.
    用于从Nashorn解析器接收诊断的接口。
    从以下版本开始:
    9
    • 方法详细信息

      • report

        void report​(Diagnostic diagnostic)
        Deprecated, for removal: This API element is subject to removal in a future version.
        每当发现解析问题时调用。
        参数
        diagnostic - additional information errors, warnings detected during parsing.