Uses of Interface
net.sourceforge.pmd.lang.java.ast.JavaParserVisitor
-
Packages that use JavaParserVisitor Package Description net.sourceforge.pmd.lang.java.ast Contains the classes and interfaces modelling the Java AST.net.sourceforge.pmd.lang.java.rule Contains the built-in rules bundled with the Java distribution.net.sourceforge.pmd.lang.java.rule.bestpractices net.sourceforge.pmd.lang.java.rule.codestyle net.sourceforge.pmd.lang.java.rule.design net.sourceforge.pmd.lang.java.rule.documentation net.sourceforge.pmd.lang.java.rule.errorprone net.sourceforge.pmd.lang.java.rule.internal net.sourceforge.pmd.lang.java.rule.multithreading net.sourceforge.pmd.lang.java.rule.performance net.sourceforge.pmd.lang.java.rule.security -
-
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.ast
Classes in net.sourceforge.pmd.lang.java.ast that implement JavaParserVisitor Modifier and Type Class Description class
JavaParserVisitorAdapter
Deprecated.UseJavaVisitorBase
Methods in net.sourceforge.pmd.lang.java.ast with parameters of type JavaParserVisitor Modifier and Type Method Description default Object
JavaNode. jjtAccept(JavaParserVisitor visitor, Object data)
Deprecated. -
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.rule
Classes in net.sourceforge.pmd.lang.java.rule that implement JavaParserVisitor Modifier and Type Class Description class
AbstractIgnoredAnnotationRule
Deprecated.Internal APIclass
AbstractJavaRule
Base class for Java rules.class
AbstractJavaRulechainRule
Base class for rules using the rulechain. -
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.rule.bestpractices
Classes in net.sourceforge.pmd.lang.java.rule.bestpractices that implement JavaParserVisitor Modifier and Type Class Description class
AbstractClassWithoutAbstractMethodRule
class
AccessorClassGenerationRule
1.class
AccessorMethodGenerationRule
class
ArrayIsStoredDirectlyRule
If a method or constructor receives an array as an argument, the array should be cloned instead of directly stored.class
AvoidReassigningCatchVariablesRule
class
AvoidReassigningLoopVariablesRule
class
AvoidReassigningParametersRule
class
AvoidUsingHardCodedIPRule
class
CheckResultSetRule
Rule that verifies, that the return values of next(), first(), last(), etc.class
ForLoopCanBeForeachRule
class
GuardLogStatementRule
Check that log.debug, log.trace, log.error, etc...class
JUnitAssertionsShouldIncludeMessageRule
class
JUnitTestContainsTooManyAssertsRule
class
JUnitTestsShouldIncludeAssertRule
class
JUnitUseExpectedRule
This rule finds code like this:class
LiteralsFirstInComparisonsRule
class
LooseCouplingRule
class
MethodReturnsInternalArrayRule
Implementation note: this rule currently ignores return types of y.x.z, currently it handles only local type fields.class
MissingOverrideRule
Flags missing @Override annotations.class
PreserveStackTraceRule
class
PrimitiveWrapperInstantiationRule
class
SimplifiableTestAssertionRule
class
UnusedAssignmentRule
class
UnusedFormalParameterRule
class
UnusedLocalVariableRule
class
UnusedPrivateFieldRule
class
UnusedPrivateMethodRule
This rule detects private methods, that are not used and can therefore be deleted.class
UseCollectionIsEmptyRule
Detect structures like "foo.size() == 0" and suggest replacing them with foo.isEmpty().class
UseTryWithResourcesRule
-
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.rule.codestyle
Classes in net.sourceforge.pmd.lang.java.rule.codestyle that implement JavaParserVisitor Modifier and Type Class Description class
AtLeastOneConstructorRule
This rule detects non-static classes with no constructors; requiring even the default constructor to be explicit.class
ClassNamingConventionsRule
Configurable naming conventions for type declarations.class
CommentDefaultAccessModifierRule
Check for Methods, Fields and Nested Classes that have a default access modifier This rule ignores all nodes annotated with @VisibleForTesting by default.class
ConfusingTernaryRule
if (x != y) { diff(); } else { same(); }
and
(!x ? diff() : same());
class
EmptyControlStatementRule
class
FieldDeclarationsShouldBeAtStartOfClassRule
Detects fields that are declared after methods, constructors, etc.class
FieldNamingConventionsRule
Configurable naming conventions for field declarations.class
FormalParameterNamingConventionsRule
Enforces a naming convention for lambda and method parameters.class
IdenticalCatchBranchesRule
Flags identical catch branches, which can be collapsed into a multi-catch.class
LinguisticNamingRule
class
LocalVariableCouldBeFinalRule
class
LocalVariableNamingConventionsRule
Enforces a naming convention for local variables and other locally scoped variables.class
MethodArgumentCouldBeFinalRule
class
MethodNamingConventionsRule
class
OnlyOneReturnRule
class
PrematureDeclarationRule
Checks for variables in methods that are defined before they are really needed.class
UnnecessaryBoxingRule
class
UnnecessaryCastRule
Detects casts where the operand is already a subtype of the context type, or may be converted to it implicitly.class
UnnecessaryConstructorRule
This rule detects when a constructor is not necessary; i.e., when there is only one constructor, it’s public, has an empty body, and takes no arguments.class
UnnecessaryFullyQualifiedNameRule
class
UnnecessaryImportRule
Detects unnecessary imports.class
UnnecessaryLocalBeforeReturnRule
class
UnnecessaryModifierRule
class
UnnecessaryReturnRule
class
UseDiamondOperatorRule
Checks usages of explicity type arguments in a constructor call that may be replaced by a diamond (<>
).class
UselessParenthesesRule
-
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.rule.design
Classes in net.sourceforge.pmd.lang.java.rule.design that implement JavaParserVisitor Modifier and Type Class Description class
AvoidDeeplyNestedIfStmtsRule
class
AvoidThrowingNullPointerExceptionRule
Findsthrow
statements containingNullPointerException
instances as thrown valuesclass
ClassWithOnlyPrivateConstructorsShouldBeFinalRule
class
CognitiveComplexityRule
Cognitive complexity rule.class
CouplingBetweenObjectsRule
CouplingBetweenObjects attempts to capture all unique Class attributes, local variables, and return types to determine how many objects a class is coupled to.class
CyclomaticComplexityRule
Cyclomatic complexity rule using metrics.class
DataClassRule
class
ExceptionAsFlowControlRule
Catches the use of exception statements as a flow control device.class
ExcessiveClassLengthRule
Deprecated.UseNcssCountRule
instead.class
ExcessiveImportsRule
ExcessiveImports attempts to count all unique imports a class contains.class
ExcessiveMethodLengthRule
Deprecated.UseNcssCountRule
instead.class
ExcessiveParameterListRule
This rule detects an abnormally long parameter list.class
ExcessivePublicCountRule
Rule attempts to count all public methods and public attributes defined in a class.class
GodClassRule
The God Class Rule detects the God Class design flaw using metrics.class
ImmutableFieldRule
class
InvalidJavaBeanRule
class
LawOfDemeterRule
This rule can detect possible violations of the Law of Demeter.class
LoosePackageCouplingRule
The loose package coupling Rule can be used to ensure coupling outside of a package hierarchy is minimized to all but an allowed set of classes from within the package hierarchy.class
NcssCountRule
Simple rule for Ncss.class
NPathComplexityRule
Simple n-path complexity rule.class
SignatureDeclareThrowsExceptionRule
A method/constructor shouldn't explicitly throw java.lang.Exception, since it is unclear which exceptions that can be thrown from the methods.class
SimplifyBooleanReturnsRule
class
SimplifyConditionalRule
class
SingularFieldRule
A singular field is a field that may be converted to a local variable.class
SwitchDensityRule
Switch Density - This is the number of statements over the number of cases within a switch.class
UselessOverridingMethodRule
class
UseUtilityClassRule
-
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.rule.documentation
Classes in net.sourceforge.pmd.lang.java.rule.documentation that implement JavaParserVisitor Modifier and Type Class Description class
CommentContentRule
A rule that checks for illegal words in the comment text.class
CommentRequiredRule
class
CommentSizeRule
A rule to manage those who just can't shut up... -
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.rule.errorprone
-
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.rule.internal
Classes in net.sourceforge.pmd.lang.java.rule.internal with annotations of type with type parameters of type that implement declared as with annotations of type with type parameters of type with annotations of type with annotations of type with type parameters of type that return that return types with arguments of type with parameters of type with type arguments of type that throw with annotations of type with annotations of type with parameters of type with type arguments of type that throw JavaParserVisitor Modifier and Type Class Description class
net.sourceforge.pmd.lang.java.rule.internal.AbstractJavaCounterCheckRule<T extends JavaNode>
Abstract class for rules counting the length of some node.static class
net.sourceforge.pmd.lang.java.rule.internal.AbstractJavaCounterCheckRule.AbstractLineLengthCheckRule<T extends JavaNode>
-
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.rule.multithreading
Classes in net.sourceforge.pmd.lang.java.rule.multithreading that implement JavaParserVisitor Modifier and Type Class Description class
DoubleCheckedLockingRule
void method() { if (x == null) { synchronized(this){ if (x == null) { x = new | method(); } } } }class
NonThreadSafeSingletonRule
class
UnsynchronizedStaticFormatterRule
Using a Formatter (e.g. -
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.rule.performance
Classes in net.sourceforge.pmd.lang.java.rule.performance that implement JavaParserVisitor Modifier and Type Class Description class
AddEmptyStringRule
class
AppendCharacterWithCharRule
This rule finds the following:class
AvoidInstantiatingObjectsInLoopsRule
class
BigIntegerInstantiationRule
Rule that marks instantiations of newBigInteger
orBigDecimal
objects, when there is a well-known constant available, such asBigInteger.ZERO
.class
ConsecutiveAppendsShouldReuseRule
class
ConsecutiveLiteralAppendsRule
This rule finds concurrent calls to StringBuffer/Builder.append where String literals are used.class
InefficientEmptyStringCheckRule
This rule finds code which inefficiently determines empty strings.class
InefficientStringBufferingRule
How this rule works: find additive expressions: + check that the addition is between anything other than two literals if true and also the parent is StringBuffer constructor or append, report a violation.class
InsufficientStringBufferDeclarationRule
This rule finds StringBuffers which may have been pre-sized incorrectly.class
RedundantFieldInitializerRule
Detects redundant field initializers, i.e.class
StringInstantiationRule
class
UseIndexOfCharRule
class
UselessStringValueOfRule
class
UseStringBufferForStringAppendsRule
-
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.rule.security
Classes in net.sourceforge.pmd.lang.java.rule.security that implement JavaParserVisitor Modifier and Type Class Description class
HardCodedCryptoKeyRule
Finds hard coded encryption keys that are passed to javax.crypto.spec.SecretKeySpec(key, algorithm).class
InsecureCryptoIvRule
Finds hardcoded static Initialization Vectors vectors used with cryptographic operations.
-