Class SingleNodeTypeValidator<N extends Node>
java.lang.Object
com.github.javaparser.ast.validator.SingleNodeTypeValidator<N>
- All Implemented Interfaces:
TypedValidator<Node>,Validator,BiConsumer<Node,ProblemReporter>
- Direct Known Subclasses:
SimpleValidator
Runs a validator on all nodes of a certain type.
-
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
-
SingleNodeTypeValidator
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<Node,ProblemReporter>- Specified by:
acceptin interfaceTypedValidator<N extends Node>- Specified by:
acceptin interfaceValidator- Parameters:
node- the node that wants to be validatedproblemReporter- when found, validation errors can be reported here
-