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
ConstructorDescriptionSimpleValidator(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 Details
-
SimpleValidator
public SimpleValidator(Class<N> type, Predicate<N> condition, BiConsumer<N,ProblemReporter> problemSupplier)
-