Interface DiagnosticListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DiagnosticListener
Interface for receiving diagnostics from Nashorn parser.
Since:
9
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    report(Diagnostic diagnostic)
    Invoked whenever a parsing problem is found.
  • Method Details

    • report

      void report(Diagnostic diagnostic)
      Invoked whenever a parsing problem is found.
      Parameters:
      diagnostic - additional information errors, warnings detected during parsing.