Class TreeVisitorValidator
java.lang.Object
com.github.javaparser.ast.validator.TreeVisitorValidator
- All Implemented Interfaces:
TypedValidator<Node>,Validator,BiConsumer<Node,ProblemReporter>
A validator that walks the whole tree, visiting every node.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiConsumer
andThenMethods inherited from interface com.github.javaparser.ast.validator.TypedValidator
postProcessor
-
Constructor Details
-
TreeVisitorValidator
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<Node,ProblemReporter>- Specified by:
acceptin interfaceTypedValidator<Node>- Specified by:
acceptin interfaceValidator- Parameters:
node- the node that wants to be validatedreporter- when found, validation errors can be reported here
-