Modifier and Type | Interface | Description |
---|---|---|
interface |
ASTMethodOrConstructorDeclaration |
Groups method and constructor declarations under a common type.
|
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractMethodLikeNode |
|
class |
AbstractMethodOrConstructorDeclaration |
|
class |
ASTConstructorDeclaration |
|
class |
ASTLambdaExpression |
|
class |
ASTMethodDeclaration |
Method declaration node.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
JavaParserVisitorReducedAdapter.visit(MethodLikeNode node,
java.lang.Object data) |
Modifier and Type | Method | Description |
---|---|---|
protected java.util.List<MethodLikeNode> |
JavaMetricsComputer.findOperations(ASTAnyTypeDeclaration node) |
Modifier and Type | Method | Description |
---|---|---|
static double |
JavaMetrics.get(net.sourceforge.pmd.lang.metrics.MetricKey<MethodLikeNode> key,
MethodLikeNode 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<MethodLikeNode> key,
MethodLikeNode 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<MethodLikeNode> 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<MethodLikeNode> 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<MethodLikeNode> key,
ASTMethodOrConstructorDeclaration node) |
Deprecated.
Provided here for backwards binary compatibility with
JavaMetrics.get(MetricKey, MethodLikeNode) . |
static double |
JavaMetrics.get(net.sourceforge.pmd.lang.metrics.MetricKey<MethodLikeNode> key,
ASTMethodOrConstructorDeclaration node,
net.sourceforge.pmd.lang.metrics.MetricOptions options) |
Deprecated.
Provided here for backwards binary compatibility with
JavaMetrics.get(MetricKey, MethodLikeNode, MetricOptions) . |
static double |
JavaMetrics.get(net.sourceforge.pmd.lang.metrics.MetricKey<MethodLikeNode> key,
MethodLikeNode 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<MethodLikeNode> key,
MethodLikeNode 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(MethodLikeNode node) |
Modifier and Type | Method | Description |
---|---|---|
double |
AtfdMetric.AtfdOperationMetric.computeFor(MethodLikeNode node,
net.sourceforge.pmd.lang.metrics.MetricOptions options) |
|
double |
CycloMetric.computeFor(MethodLikeNode node,
net.sourceforge.pmd.lang.metrics.MetricOptions options) |
|
double |
LocMetric.LocOperationMetric.computeFor(MethodLikeNode node,
net.sourceforge.pmd.lang.metrics.MetricOptions options) |
|
double |
NcssMetric.NcssOperationMetric.computeFor(MethodLikeNode node,
net.sourceforge.pmd.lang.metrics.MetricOptions version) |
|
double |
NpathMetric.computeFor(MethodLikeNode node,
net.sourceforge.pmd.lang.metrics.MetricOptions options) |
|
boolean |
AbstractJavaOperationMetric.supports(MethodLikeNode node) |
Returns true if the metric can be computed on this operation.
|
boolean |
AtfdMetric.AtfdOperationMetric.supports(MethodLikeNode node) |
|
boolean |
LocMetric.LocOperationMetric.supports(MethodLikeNode node) |
|
boolean |
NcssMetric.NcssOperationMetric.supports(MethodLikeNode node) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
AbstractJavaMetricsRule.visit(MethodLikeNode node,
java.lang.Object data) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
CyclomaticComplexityRule.visit(MethodLikeNode node,
java.lang.Object data) |
Copyright © 2002–2018 PMD. All rights reserved.