JavaParserVisitor, net.sourceforge.pmd.lang.rule.ImmutableLanguage, net.sourceforge.pmd.properties.PropertySource, net.sourceforge.pmd.RuleImmutableFieldRule, SingularFieldRule, UnusedPrivateFieldRulepublic class AbstractLombokAwareRule extends AbstractIgnoredAnnotationRule
| Constructor | Description |
|---|---|
AbstractLombokAwareRule() |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.util.Collection<java.lang.String> |
defaultSuppressionAnnotations() |
|
protected boolean |
hasClassLombokAnnotation() |
Returns whether there have been class level Lombok annotations found.
|
protected boolean |
hasLombokAnnotation(net.sourceforge.pmd.lang.ast.Node node) |
Deprecated.
As of release 6.2.0, replaced by
hasLombokAnnotation(Annotatable)
Checks whether the given node is annotated with any lombok annotation. |
protected boolean |
hasLombokAnnotation(Annotatable node) |
Checks whether the given node is annotated with any lombok annotation.
|
java.lang.Object |
visit(ASTClassOrInterfaceDeclaration node,
java.lang.Object data) |
|
java.lang.Object |
visit(ASTCompilationUnit node,
java.lang.Object data) |
|
java.lang.Object |
visit(ASTEnumDeclaration node,
java.lang.Object data) |
|
java.lang.Object |
visit(ASTImportDeclaration node,
java.lang.Object data) |
hasIgnoredAnnotationapply, getDeclaringType, importsPackage, isQualifiedName, isSuppressed, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitAllcopyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, setProperty, setProperty, useDefaultValueFor, usesDefaultValuesaddExample, addRuleChainVisit, addRuleChainVisit, addViolation, addViolation, addViolation, addViolationWithMessage, addViolationWithMessage, addViolationWithMessage, deepCopy, deepCopyValuesTo, end, equals, getDescription, getExamples, getExternalInfoUrl, getLanguage, getMaximumLanguageVersion, getMessage, getMinimumLanguageVersion, getName, getParserOptions, getPriority, getRuleChainVisits, getRuleClass, getRuleSetName, getSince, hashCode, isDeprecated, isDfa, isMultifile, isRuleChain, isTypeResolution, setDeprecated, setDescription, setDfa, setExternalInfoUrl, setLanguage, setMaximumLanguageVersion, setMessage, setMinimumLanguageVersion, setMultifile, setName, setPriority, setRuleClass, setRuleSetName, setSince, setTypeResolution, setUsesDFA, setUsesMultifile, setUsesTypeResolution, start, usesDFA, usesMultifile, usesRuleChain, usesTypeResolutionclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdefinePropertyDescriptor, dysfunctionReason, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, setProperty, setProperty, useDefaultValueFor, usesDefaultValuesprotected java.util.Collection<java.lang.String> defaultSuppressionAnnotations()
defaultSuppressionAnnotations in class AbstractIgnoredAnnotationRulepublic java.lang.Object visit(ASTCompilationUnit node, java.lang.Object data)
visit in interface JavaParserVisitorvisit in class AbstractJavaRulepublic java.lang.Object visit(ASTImportDeclaration node, java.lang.Object data)
visit in interface JavaParserVisitorvisit in class AbstractJavaRulepublic java.lang.Object visit(ASTClassOrInterfaceDeclaration node, java.lang.Object data)
visit in interface JavaParserVisitorvisit in class AbstractJavaRulepublic java.lang.Object visit(ASTEnumDeclaration node, java.lang.Object data)
visit in interface JavaParserVisitorvisit in class AbstractJavaRuleprotected boolean hasClassLombokAnnotation()
true if a lombok annotation at the class level has
been found@Deprecated protected boolean hasLombokAnnotation(net.sourceforge.pmd.lang.ast.Node node)
hasLombokAnnotation(Annotatable)
Checks whether the given node is annotated with any lombok annotation.
The node can be any node, e.g. class declaration or field declaration.node - the node to checktrue if a lombok annotation has been foundprotected boolean hasLombokAnnotation(Annotatable node)
node - the Annotatable node to checktrue if a lombok annotation has been foundCopyright © 2002–2018 PMD. All rights reserved.