- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Deprecated(since="11", forRemoval=true) @FunctionalInterface public interface DiagnosticListener
Deprecated, for removal: This API element is subject to removal in a future version.
Interface for receiving diagnostics from Nashorn parser.
reportvoid report(Diagnostic diagnostic)Deprecated, for removal: This API element is subject to removal in a future version.Invoked whenever a parsing problem is found.
diagnostic- additional information errors, warnings detected during parsing.