| Modifier and Type | Class | Description |
|---|---|---|
class |
ASTConstructorDeclaration |
|
class |
ASTMethodDeclaration |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
JavaParserVisitorReducedAdapter.visit(ASTMethodOrConstructorDeclaration node,
java.lang.Object data) |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.util.List<ASTMethodOrConstructorDeclaration> |
JavaMetricsComputer.findOperations(ASTAnyTypeDeclaration node) |
| Modifier and Type | Method | Description |
|---|---|---|
static double |
JavaMetrics.get(net.sourceforge.pmd.lang.metrics.MetricKey<ASTMethodOrConstructorDeclaration> key,
ASTMethodOrConstructorDeclaration node) |
Computes the standard version of the metric identified by the key on a operation AST node.
|
static double |
JavaMetrics.get(net.sourceforge.pmd.lang.metrics.MetricKey<ASTMethodOrConstructorDeclaration> key,
ASTMethodOrConstructorDeclaration node,
net.sourceforge.pmd.lang.metrics.MetricOptions options) |
Computes a metric identified by its key on a operation AST node.
|
| Modifier and Type | Method | Description |
|---|---|---|
static double |
JavaMetrics.get(net.sourceforge.pmd.lang.metrics.MetricKey<ASTMethodOrConstructorDeclaration> key,
ASTAnyTypeDeclaration node,
net.sourceforge.pmd.lang.metrics.MetricOptions options,
net.sourceforge.pmd.lang.metrics.ResultOption resultOption) |
Compute the sum, average, or highest value of the operation metric on all operations of the class node.
|
static double |
JavaMetrics.get(net.sourceforge.pmd.lang.metrics.MetricKey<ASTMethodOrConstructorDeclaration> key,
ASTAnyTypeDeclaration node,
net.sourceforge.pmd.lang.metrics.ResultOption resultOption) |
Compute the sum, average, or highest value of the standard operation metric on all operations of the class node.
|
static double |
JavaMetrics.get(net.sourceforge.pmd.lang.metrics.MetricKey<ASTMethodOrConstructorDeclaration> key,
ASTMethodOrConstructorDeclaration node) |
Computes the standard version of the metric identified by the key on a operation AST node.
|
static double |
JavaMetrics.get(net.sourceforge.pmd.lang.metrics.MetricKey<ASTMethodOrConstructorDeclaration> key,
ASTMethodOrConstructorDeclaration node,
net.sourceforge.pmd.lang.metrics.MetricOptions options) |
Computes a metric identified by its key on a operation AST node.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
JavaOperationMetricKey.supports(ASTMethodOrConstructorDeclaration node) |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.util.List<ASTMethodOrConstructorDeclaration> |
AbstractJavaClassMetric.getMethodsAndConstructors(ASTAnyTypeDeclaration node) |
Gets a list of all methods and constructors declared in the class.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
NpathBaseVisitor.visit(ASTMethodOrConstructorDeclaration node,
java.lang.Object data) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
MultifileVisitor.visit(ASTMethodOrConstructorDeclaration node,
java.lang.Object data) |
| Modifier and Type | Method | Description |
|---|---|---|
static JavaOperationSignature |
JavaOperationSignature.buildFor(ASTMethodOrConstructorDeclaration node) |
Builds an operation signature from a method or constructor declaration.
|
static JavaOperationSignature.Role |
JavaOperationSignature.Role.get(ASTMethodOrConstructorDeclaration node) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
AbstractJavaMetricsRule.visit(ASTMethodOrConstructorDeclaration node,
java.lang.Object data) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
CyclomaticComplexityRule.visit(ASTMethodOrConstructorDeclaration node,
java.lang.Object data) |
|
java.lang.Object |
NcssCountRule.visit(ASTMethodOrConstructorDeclaration node,
java.lang.Object data) |
|
java.lang.Object |
NPathComplexityRule.visit(ASTMethodOrConstructorDeclaration node,
java.lang.Object data) |
Copyright © 2002–2018 PMD. All rights reserved.