Modifier and Type | Method and Description |
---|---|
static QualifiedName |
QualifiedName.makeOuterClassOf(ASTClassOrInterfaceDeclaration node)
Builds the qualified name of an outer (not nested) class.
|
Object |
JavaParserVisitor.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Object |
JavaParserVisitorAdapter.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
protected static double |
AbstractMetric.averageMetricOverOperations(ASTClassOrInterfaceDeclaration node,
OperationMetricKey key,
MetricVersion version,
boolean includeNested)
Gets the average of the value of an operation metric over all operations in this class (excluding nested
classes).
|
static List<ASTMethodOrConstructorDeclaration> |
AbstractMetric.findOperations(ASTClassOrInterfaceDeclaration node,
boolean includeNested)
Finds the declaration nodes of all methods or constructors that are declared inside a class.
|
static double |
Metrics.get(ClassMetricKey key,
ASTClassOrInterfaceDeclaration node)
Computes the standard value of the metric identified by its code on a class AST node.
|
static double |
Metrics.get(ClassMetricKey key,
ASTClassOrInterfaceDeclaration node,
MetricVersion version)
Computes a metric identified by its code on a class AST node, possibly selecting a variant with the
MetricVersion parameter. |
static double |
Metrics.get(OperationMetricKey key,
ASTClassOrInterfaceDeclaration node,
MetricVersion version,
ResultOption option)
Compute the sum, average, or highest value of the operation metric on all operations of the class node.
|
protected static double |
AbstractMetric.highestMetricOverOperations(ASTClassOrInterfaceDeclaration node,
OperationMetricKey key,
MetricVersion version,
boolean includeNested)
Gets the highest value of an operation metric over all operations in this class (excluding nested classes).
|
protected static double |
AbstractMetric.sumMetricOverOperations(ASTClassOrInterfaceDeclaration node,
OperationMetricKey key,
MetricVersion version,
boolean includeNested)
Gets the sum of the value of an operation metric over all operations in this class (excluding nested classes).
|
Modifier and Type | Method and Description |
---|---|
double |
ClassMetric.computeFor(ASTClassOrInterfaceDeclaration node,
MetricVersion version)
Actually computes the value of a metric for an AST node.
|
Modifier and Type | Method and Description |
---|---|
double |
WmcMetric.computeFor(ASTClassOrInterfaceDeclaration node,
MetricVersion version) |
double |
NcssMetric.computeFor(ASTClassOrInterfaceDeclaration node,
MetricVersion version) |
double |
LocMetric.computeFor(ASTClassOrInterfaceDeclaration node,
MetricVersion version) |
double |
CycloMetric.computeFor(ASTClassOrInterfaceDeclaration node,
MetricVersion version) |
double |
AtfdMetric.computeFor(ASTClassOrInterfaceDeclaration node,
MetricVersion version) |
Modifier and Type | Method and Description |
---|---|
Object |
CyclomaticComplexityRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
AbstractLombokAwareRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Object |
AbstractJavaRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
OverrideBothEqualsAndHashcodeRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Object |
DoubleCheckedLockingRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
StdCyclomaticComplexityRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Object |
NcssTypeCountRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
CommentRequiredRule.visit(ASTClassOrInterfaceDeclaration decl,
Object data) |
Object |
CommentDefaultAccessModifierRule.visit(ASTClassOrInterfaceDeclaration decl,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
OnlyOneReturnRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Object |
DataflowAnomalyAnalysisRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
CouplingBetweenObjectsRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
ImmutableFieldRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Object |
ConstructorCallsOverridableMethodRule.visit(ASTClassOrInterfaceDeclaration node,
Object data)
This check must be evaluated independently for each class.
|
Object |
AssignmentToNonFinalStaticRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
BeanMembersShouldSerializeRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
TestClassWithoutTestCasesRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Object |
JUnitTestsShouldIncludeAssertRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
MoreThanOneLoggerRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
MethodWithSameNameAsEnclosingClassRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Object |
ClassNamingConventionsRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Object |
AvoidFieldNameMatchingTypeNameRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Object |
AvoidFieldNameMatchingMethodNameRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Object |
AvoidDollarSignsRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
AbstractOptimizationRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
MethodReturnsInternalArrayRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Object |
ArrayIsStoredDirectlyRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
UselessOverridingMethodRule.visit(ASTClassOrInterfaceDeclaration clz,
Object data) |
Object |
UnnecessaryModifierRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
UnusedPrivateMethodRule.visit(ASTClassOrInterfaceDeclaration node,
Object data)
Visit each method declaration.
|
Object |
UnusedPrivateFieldRule.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
ScopeAndDeclarationFinder.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
ClassTypeResolver.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
SignatureDeclareThrowsException.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Object |
CloneMethodMustImplementCloneable.visit(ASTClassOrInterfaceDeclaration node,
Object data) |
Copyright © 2002–2017 PMD. All rights reserved.