Interface Validator
-
- All Superinterfaces:
BiConsumer<Node,ProblemReporter>,TypedValidator<Node>
- All Known Implementing Classes:
CommonValidators,Java1_0Validator,Java1_1Validator,Java1_2Validator,Java1_3Validator,Java1_4Validator,Java10Validator,Java11Validator,Java12Validator,Java5Validator,Java6Validator,Java7Validator,Java8Validator,Java9Validator,ModifierValidator,NoBinaryIntegerLiteralsValidator,NoProblemsValidator,NoUnderscoresInIntegerLiteralsValidator,ReservedKeywordValidator,SimpleValidator,SingleNodeTypeValidator,TreeVisitorValidator,UnderscoreKeywordValidator,Validators,VisitorValidator
public interface Validator extends TypedValidator<Node>
A validator that can be run on a node to check for semantic errors. It is fully up to the implementor how to do this.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(Node node, ProblemReporter problemReporter)-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
Methods inherited from interface com.github.javaparser.ast.validator.TypedValidator
postProcessor
-
-
-
-
Method Detail
-
accept
void accept(Node node, ProblemReporter problemReporter)
- Specified by:
acceptin interfaceBiConsumer<Node,ProblemReporter>- Specified by:
acceptin interfaceTypedValidator<Node>- Parameters:
node- the node that wants to be validatedproblemReporter- when found, validation errors can be reported here
-
-