Class ProblemReporter

java.lang.Object
com.github.javaparser.ast.validator.ProblemReporter

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

    • ProblemReporter

      public ProblemReporter(Consumer<Problem> problemConsumer)
  • Method Details

    • 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.
    • report

      public void report(TokenRange range, String message, Object... args)