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 Summary
Constructors Constructor Description ProblemReporter(Consumer<Problem> problemConsumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
report(NodeWithTokenRange<?> node, String message, Object... args)
Report a problem.void
report(TokenRange range, String message, Object... args)
-
-
-
Method Detail
-
report
public void report(NodeWithTokenRange<?> node, String message, Object... args)
Report a problem.- Parameters:
message
- description of the problemnode
- 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)
-
-