Class AbstractClassCheck
java.lang.Object
org.hibernate.validator.ap.internal.classchecks.AbstractClassCheck
- All Implemented Interfaces:
ClassCheck
- Direct Known Subclasses:
AbstractMethodOverrideCheck
Abstract base class for ClassCheck implementations. Concrete
checks should only override those check methods applicable for their
supported element types.
All check methods not overridden will return an empty set.
- Author:
- Marko Bekhta
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckMethod(ExecutableElement element) Checks whether the given method is written correctly.final Collection<ConstraintCheckIssue>Run all checks on the element.
-
Constructor Details
-
AbstractClassCheck
public AbstractClassCheck()
-
-
Method Details
-
checkMethod
Description copied from interface:ClassCheckChecks whether the given method is written correctly.- Specified by:
checkMethodin interfaceClassCheck- Parameters:
element- the method under investigation- Returns:
- a collection with errors that describe why the given method is not correctly implemented. In case no errors occur (the method is written correctly), an empty set must be returned
-
execute
Description copied from interface:ClassCheckRun all checks on the element.- Specified by:
executein interfaceClassCheck- Parameters:
element- the element under investigation- Returns:
- a collection with errors that describe why the given element does not pass the checks. In case no errors occur (all checks completed successfully), an empty set must be returned
-