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
,java.util.function.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(java.lang.Class<N> type, java.util.function.Predicate<N> condition, java.util.function.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 com.github.javaparser.ast.validator.TypedValidator
processor
-
-
-
-
Constructor Detail
-
SimpleValidator
public SimpleValidator(java.lang.Class<N> type, java.util.function.Predicate<N> condition, java.util.function.BiConsumer<N,ProblemReporter> problemSupplier)
-
-