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>
public class SimpleValidator<N extends Node> extends SingleNodeTypeValidator<N>
Runs a validator on all nodes of a certain type, and adds a problem for all nodes that pass a condition.
-
-
Constructor Summary
Constructors Constructor Description SimpleValidator(Class<N> type, Predicate<N> condition, BiConsumer<N,ProblemReporter> problemSupplier)
-
Method Summary
-
Methods inherited from class com.github.javaparser.ast.validator.SingleNodeTypeValidator
accept
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
Methods inherited from interface com.github.javaparser.ast.validator.TypedValidator
postProcessor
-
-
-
-
Constructor Detail
-
SimpleValidator
public SimpleValidator(Class<N> type, Predicate<N> condition, BiConsumer<N,ProblemReporter> problemSupplier)
-
-