Class VarValidator
java.lang.Object
com.github.javaparser.ast.validator.language_level_validations.chunks.VarValidator
- All Implemented Interfaces:
TypedValidator<VarType>
,BiConsumer<VarType,
ProblemReporter>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(VarType node, ProblemReporter reporter) private void
reportIllegalPosition
(VarType n, 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
-
Field Details
-
varAllowedInLambdaParameters
private boolean varAllowedInLambdaParameters
-
-
Constructor Details
-
VarValidator
public VarValidator(boolean varAllowedInLambdaParameters)
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceBiConsumer<VarType,
ProblemReporter> - Specified by:
accept
in interfaceTypedValidator<VarType>
- Parameters:
node
- the node that wants to be validatedreporter
- when found, validation errors can be reported here
-
reportIllegalPosition
-