Class SimpleValidator<N extends Node>
java.lang.Object
com.github.javaparser.ast.validator.SingleNodeTypeValidator<N>
com.github.javaparser.ast.validator.SimpleValidator<N>
- All Implemented Interfaces:
TypedValidator<Node>, Validator, BiConsumer<Node, ProblemReporter>
Runs a validator on all nodes of a certain type,
and adds a problem for all nodes that pass a condition.
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleValidator(Class<N> type, Predicate<N> condition, BiConsumer<N, ProblemReporter> problemSupplier) -
Method Summary
Methods inherited from class SingleNodeTypeValidator
acceptMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThenMethods inherited from interface TypedValidator
processor
-
Constructor Details
-
SimpleValidator
public SimpleValidator(Class<N> type, Predicate<N> condition, BiConsumer<N, ProblemReporter> problemSupplier)
-