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.dfa net.sourceforge.pmd.lang.java.metrics.impl.visitors net.sourceforge.pmd.lang.java.multifile net.sourceforge.pmd.lang.java.qname 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.multithreading net.sourceforge.pmd.lang.java.rule.performance net.sourceforge.pmd.lang.java.rule.security net.sourceforge.pmd.lang.java.symboltable net.sourceforge.pmd.lang.java.typeresolution -
-
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.ast
Subinterfaces of JavaParserVisitor in net.sourceforge.pmd.lang.java.ast Modifier and Type Interface Description interface
JavaParserControllessVisitor
Deprecated.Visitor decorators are deprecated because they lead to fragile code.Classes in net.sourceforge.pmd.lang.java.ast that implement JavaParserVisitor Modifier and Type Class Description class
DumpFacade
Deprecated.This class will be removed with PMD 7.class
JavaParserControllessVisitorAdapter
Deprecated.Visitor decorators are deprecated because they lead to fragile code.class
JavaParserDecoratedVisitor
Deprecated.Visitor decorators are deprecated because they lead to fragile code.class
JavaParserVisitorAdapter
class
JavaParserVisitorDecorator
Deprecated.Visitor decorators are deprecated because they lead to fragile code.class
JavaParserVisitorReducedAdapter
Deprecated.The functionality of this adapter will be moved into the base java visitor, so this class will go away with PMD 7.Methods in net.sourceforge.pmd.lang.java.ast with parameters of type JavaParserVisitor Modifier and Type Method Description Object
AbstractJavaNode. childrenAccept(JavaParserVisitor visitor, Object data)
Deprecated.Object
JavaNode. childrenAccept(JavaParserVisitor visitor, Object data)
Deprecated.This method is not useful, the logic for combining children values should be present on the visitor, not the nodeObject
AbstractJavaNode. jjtAccept(JavaParserVisitor visitor, Object data)
Deprecated.Object
ASTAdditiveExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTAllocationExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTAndExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTAnnotation. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTAnnotationMethodDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTAnnotationTypeBody. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTAnnotationTypeDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTAnnotationTypeMemberDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTArgumentList. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTArguments. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTArrayDimsAndInits. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTArrayInitializer. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTAssertStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTAssignmentOperator. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTBlock. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTBlockStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTBooleanLiteral. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTBreakStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTCastExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTCatchStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTClassOrInterfaceBody. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTClassOrInterfaceBodyDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTClassOrInterfaceDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTClassOrInterfaceType. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTCompilationUnit. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTConditionalAndExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTConditionalExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTConditionalOrExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTConstructorDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTContinueStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTDefaultValue. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTDoStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTEmptyStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTEnumBody. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTEnumConstant. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTEnumDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTEqualityExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTExclusiveOrExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTExplicitConstructorInvocation. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTExtendsList. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTFieldDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTFinallyStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTForInit. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTFormalParameter. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTFormalParameters. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTForStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTForUpdate. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTIfStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTImplementsList. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTImportDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTInclusiveOrExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTInitializer. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTInstanceOfExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTLabeledStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTLambdaExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTLiteral. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTLocalVariableDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTMarkerAnnotation. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTMemberSelector. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTMemberValue. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTMemberValueArrayInitializer. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTMemberValuePair. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTMemberValuePairs. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTMethodDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTMethodDeclarator. jjtAccept(JavaParserVisitor visitor, Object data)
Deprecated.Object
ASTMethodReference. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTModuleDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTModuleDirective. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTModuleName. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTMultiplicativeExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTName. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTNameList. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTNormalAnnotation. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTNullLiteral. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTPackageDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTPermitsList. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTPostfixExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTPreDecrementExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTPreIncrementExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTPrimaryExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTPrimaryPrefix. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTPrimarySuffix. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTPrimitiveType. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTRecordBody. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTRecordComponent. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTRecordComponentList. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTRecordConstructorDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTRecordDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTReferenceType. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTRelationalExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTResource. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTResources. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTResourceSpecification. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTResultType. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTReturnStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTRSIGNEDSHIFT. jjtAccept(JavaParserVisitor visitor, Object data)
Deprecated.Object
ASTRUNSIGNEDSHIFT. jjtAccept(JavaParserVisitor visitor, Object data)
Deprecated.Object
ASTShiftExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTSingleMemberAnnotation. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTStatementExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTStatementExpressionList. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTSwitchExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTSwitchLabel. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTSwitchLabeledBlock. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTSwitchLabeledExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTSwitchLabeledThrowStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTSwitchStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTSynchronizedStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTThrowStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTTryStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTType. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTTypeArgument. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTTypeArguments. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTTypeBound. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTTypeDeclaration. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTTypeParameter. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTTypeParameters. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTTypeTestPattern. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTUnaryExpression. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTUnaryExpressionNotPlusMinus. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTVariableDeclarator. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTVariableDeclaratorId. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTVariableInitializer. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTWhileStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTWildcardBounds. jjtAccept(JavaParserVisitor visitor, Object data)
Object
ASTYieldStatement. jjtAccept(JavaParserVisitor visitor, Object data)
Object
JavaNode. jjtAccept(JavaParserVisitor visitor, Object data)
Calls back the visitor's visit method corresponding to the runtime type of this Node. -
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.dfa
Classes in net.sourceforge.pmd.lang.java.dfa that implement JavaParserVisitor Modifier and Type Class Description class
DataFlowFacade
Deprecated.SeeDataFlowNode
class
JavaDFAGraphRule
Deprecated.Only used by the deprecated designerclass
StatementAndBraceFinder
Deprecated.SeeDataFlowNode
class
VariableAccessVisitor
Deprecated.SeeDataFlowNode
-
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.metrics.impl.visitors
Classes in net.sourceforge.pmd.lang.java.metrics.impl.visitors that implement JavaParserVisitor Modifier and Type Class Description class
AtfdBaseVisitor
Deprecated.Is internal API, will be moved in 7.0.0class
CycloAssertAwareDecorator
Deprecated.Visitor decorators are deprecated because they lead to fragile code.class
CycloBaseVisitor
Deprecated.Visitor decorators are deprecated because they lead to fragile code.class
CycloPathAwareDecorator
Deprecated.Visitor decorators are deprecated because they lead to fragile code.class
NcssBaseVisitor
Deprecated.Visitor decorators are deprecated because they lead to fragile code.class
NcssCountImportsDecorator
Deprecated.Visitor decorators are deprecated because they lead to fragile code.class
NpathBaseVisitor
Deprecated.Is internal API, will be moved in 7.0.0class
TccAttributeAccessCollector
Deprecated.Is internal API, will be moved in 7.0.0 -
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.multifile
Classes in net.sourceforge.pmd.lang.java.multifile that implement JavaParserVisitor Modifier and Type Class Description class
MultifileVisitor
Fills the PackageStats.class
MultifileVisitorFacade
-
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.qname
Classes in net.sourceforge.pmd.lang.java.qname that implement JavaParserVisitor Modifier and Type Class Description class
QualifiedNameResolver
Deprecated.Is internal API -
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
AbstractInefficientZeroCheck
Deprecated.Internal APIclass
AbstractJavaMetricsRule
Deprecated.Internal APIclass
AbstractJavaRule
class
AbstractJUnitRule
Deprecated.Internal APIclass
AbstractLombokAwareRule
Deprecated.Internal APIclass
AbstractPoorMethodCall
Deprecated.Internal APIclass
AbstractStatisticalJavaRule
Deprecated.seeStatisticalRule
class
GenericLiteralCheckerRule
This class allow to match a Literal (most likely a String) with a regex pattern.class
StringConcatenationRule
class
SymbolTableTestRule
Deprecated.This is a test rule and should not have been added to the main source.class
UselessAssignment
-
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
AbstractSunSecureRule
Deprecated.Internal APIclass
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
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
PositionLiteralsFirstInCaseInsensitiveComparisonsRule
Deprecated.Replaced byLiteralsFirstInComparisonsRule
class
PositionLiteralsFirstInComparisonsRule
Deprecated.Replaced byLiteralsFirstInComparisonsRule
class
PreserveStackTraceRule
class
UnusedAssignmentRule
class
UnusedFormalParameterRule
class
UnusedImportsRule
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(). -
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
AvoidDollarSignsRule
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
DontImportJavaLangRule
class
DuplicateImportsRule
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
UnnecessaryAnnotationValueElementRule
class
UnnecessaryCastRule
This is a rule, that detects unnecessary casts when using Java 1.5 generics and collections.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
UnnecessaryLocalBeforeReturnRule
class
UnnecessaryModifierRule
class
UnnecessaryReturnRule
class
VariableNamingConventionsRule
Deprecated. -
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
AbstractNcssCountRule
Deprecated.Internal APIclass
AvoidDeeplyNestedIfStmtsRule
class
AvoidThrowingNullPointerExceptionRule
Findsthrow
statements containingNullPointerException
instances as thrown valuesclass
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
This rule detects when a class exceeds a certain threshold.class
ExcessiveImportsRule
ExcessiveImports attempts to count all unique imports a class contains.class
ExcessiveLengthRule
This is a common super class for things which have excessive length.class
ExcessiveMethodLengthRule
This rule detects when a method exceeds a certain threshold.class
ExcessiveNodeCountRule
This is a common super class for things which shouldn't have excessive nodes underneath.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
GenericClassCounterRule
A generic rule that can be configured to "count" classes of certain type based on either their name (full name, prefix, suffixes anything can be matched with a regex), and/or their type.class
GodClassRule
The God Class Rule detects the God Class design flaw using metrics.class
ImmutableFieldRule
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
ModifiedCyclomaticComplexityRule
Deprecated.class
NcssConstructorCountRule
Deprecated.class
NcssCountRule
Simple rule for Ncss.class
NcssMethodCountRule
Deprecated.class
NcssTypeCountRule
Deprecated.class
NPathComplexityRule
Simple n-path complexity rule.class
PositionalIteratorRule
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
SingularFieldRule
class
StdCyclomaticComplexityRule
Deprecated.class
SwitchDensityRule
Switch Density - This is the number of statements over the number of cases within a switch.class
TooManyFieldsRule
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
AbstractCommentRule
Deprecated.Internal APIclass
CodeInCommentsRule
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...class
HeaderCommentsRule
Restrictions regarding the legal placement and content of the file header.class
JavadocRule
-
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.rule.errorprone
-
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
UnsynchronizedStaticDateFormatterRule
Deprecated.This rule is being replaced byUnsynchronizedStaticFormatterRule
.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
AbstractOptimizationRule
Deprecated.Internal APIclass
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
BooleanInstantiationRule
Avoid instantiating Boolean objects; you can reference Boolean.TRUE, Boolean.FALSE, or call Boolean.valueOf() instead.class
ConsecutiveAppendsShouldReuseRule
class
ConsecutiveLiteralAppendsRule
This rule finds concurrent calls to StringBuffer/Builder.append where String literals are used It would be much better to make these calls using one call to.append
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
StringToStringRule
Finds toString() call on String object.class
UnnecessaryWrapperObjectCreationRule
class
UseIndexOfCharRule
class
UselessStringValueOfRule
class
UseStringBufferForStringAppendsRule
class
UseStringBufferLengthRule
This rule finds places where StringBuffer.toString() is called just to see if the string is 0 length by either using .equals("") or toString().length(). -
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. -
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.symboltable
Classes in net.sourceforge.pmd.lang.java.symboltable that implement JavaParserVisitor Modifier and Type Class Description class
OccurrenceFinder
Deprecated.class
ScopeAndDeclarationFinder
Deprecated. -
Uses of JavaParserVisitor in net.sourceforge.pmd.lang.java.typeresolution
Classes in net.sourceforge.pmd.lang.java.typeresolution that implement JavaParserVisitor Modifier and Type Class Description class
ClassTypeResolver
Deprecated.class
TypeResolutionFacade
Deprecated.
-