public abstract class AbstractClassCheck extends java.lang.Object implements ClassCheck
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.
Constructor and Description |
---|
AbstractClassCheck() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<ConstraintCheckIssue> |
checkMethod(javax.lang.model.element.ExecutableElement element)
Checks whether the given method is written correctly.
|
java.util.Collection<ConstraintCheckIssue> |
execute(javax.lang.model.element.Element element)
Run all checks on the element.
|
public java.util.Set<ConstraintCheckIssue> checkMethod(javax.lang.model.element.ExecutableElement element)
ClassCheck
checkMethod
in interface ClassCheck
element
- the method under investigationpublic final java.util.Collection<ConstraintCheckIssue> execute(javax.lang.model.element.Element element)
ClassCheck
execute
in interface ClassCheck
element
- the element under investigationCopyright © 2007-2022 Red Hat, Inc. All Rights Reserved