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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods 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
-
Field Details
-
type
-
validator
-
-
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
-