Class VarValidator
- java.lang.Object
-
- com.github.javaparser.ast.validator.language_level_validations.chunks.VarValidator
-
- All Implemented Interfaces:
TypedValidator<VarType>,BiConsumer<VarType,ProblemReporter>
public class VarValidator extends Object implements TypedValidator<VarType>
-
-
Constructor Summary
Constructors Constructor Description VarValidator(boolean varAllowedInLambdaParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(VarType node, ProblemReporter reporter)-
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
processor
-
-
-
-
Method Detail
-
accept
public void accept(VarType node, ProblemReporter reporter)
- Specified by:
acceptin interfaceBiConsumer<VarType,ProblemReporter>- Specified by:
acceptin interfaceTypedValidator<VarType>- Parameters:
node- the node that wants to be validatedreporter- when found, validation errors can be reported here
-
-