1package com.github.javaparser.ast.validator;
2
3import com.github.javaparser.ast.Node;
4
5/**
6 * A validator that can be run on a node to check for semantic errors.
7 * It is fully up to the implementor how to do this.
8 */
9public interface Validator extends TypedValidator<Node> {
10    /**
11     * @param node the node that wants to be validated
12     * @param problemReporter when found, validation errors can be reported here
13     */
14    void accept(Node node, ProblemReporter problemReporter);
15}
16