Interface DiagnosticChain

All Known Implementing Classes:
BasicDiagnostic

public interface DiagnosticChain
An accumulator of diagnostics.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(Diagnostic diagnostic)
    Adds the diagnostic to the chain.
    void
    addAll(Diagnostic diagnostic)
    Adds the children of the diagnostic to the chain.
    void
    merge(Diagnostic diagnostic)
    If the diagnostic has children, adds those children, otherwise, adds the diagnostic.
  • Method Details

    • add

      void add(Diagnostic diagnostic)
      Adds the diagnostic to the chain.
    • addAll

      void addAll(Diagnostic diagnostic)
      Adds the children of the diagnostic to the chain.
    • merge

      void merge(Diagnostic diagnostic)
      If the diagnostic has children, adds those children, otherwise, adds the diagnostic.