Class ProblemReporter


  • public class ProblemReporter
    extends Object
    A simple interface where validators can report found problems.
    • Constructor Detail

      • ProblemReporter

        public ProblemReporter​(Consumer<Problem> problemConsumer)
    • Method Detail

      • report

        public void report​(NodeWithTokenRange<?> node,
                           String message,
                           Object... args)
        Report a problem.
        Parameters:
        message - description of the problem
        node - the node in which the problem occurred, used to find the Range of the problem.