Rename metrics.metrics to metrics.impl
This commit is contained in:
@ -5,11 +5,11 @@
|
||||
package net.sourceforge.pmd.lang.java.metrics.api;
|
||||
|
||||
import net.sourceforge.pmd.lang.java.ast.ASTAnyTypeDeclaration;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.AtfdMetric.AtfdClassMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.CycloMetric.CycloClassMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.LocMetric.LocClassMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.NcssMetric.NcssClassMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.WmcMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.AtfdMetric.AtfdClassMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.CycloMetric.CycloClassMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.LocMetric.LocClassMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.NcssMetric.NcssClassMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.WmcMetric;
|
||||
import net.sourceforge.pmd.lang.metrics.api.Metric;
|
||||
import net.sourceforge.pmd.lang.metrics.api.MetricKey;
|
||||
|
||||
@ -21,7 +21,7 @@ public enum JavaClassMetricKey implements MetricKey<ASTAnyTypeDeclaration> {
|
||||
/**
|
||||
* Access to Foreign Data.
|
||||
*
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.metrics.AtfdMetric
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.impl.AtfdMetric
|
||||
*/
|
||||
ATFD(new AtfdClassMetric()),
|
||||
|
||||
@ -35,21 +35,21 @@ public enum JavaClassMetricKey implements MetricKey<ASTAnyTypeDeclaration> {
|
||||
/**
|
||||
* Cyclomatic complexity.
|
||||
*
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.metrics.CycloMetric
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.impl.CycloMetric
|
||||
*/
|
||||
CYCLO(new CycloClassMetric()),
|
||||
|
||||
/**
|
||||
* Non Commenting Source Statements.
|
||||
*
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.metrics.NcssMetric
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.impl.NcssMetric
|
||||
*/
|
||||
NCSS(new NcssClassMetric()),
|
||||
|
||||
/**
|
||||
* Lines of Code.
|
||||
*
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.metrics.LocMetric
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.impl.LocMetric
|
||||
*/
|
||||
LOC(new LocClassMetric());
|
||||
|
||||
|
@ -5,10 +5,10 @@
|
||||
package net.sourceforge.pmd.lang.java.metrics.api;
|
||||
|
||||
import net.sourceforge.pmd.lang.java.ast.ASTMethodOrConstructorDeclaration;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.AtfdMetric.AtfdOperationMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.CycloMetric.CycloOperationMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.LocMetric.LocOperationMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.NcssMetric.NcssOperationMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.AtfdMetric.AtfdOperationMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.CycloMetric.CycloOperationMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.LocMetric.LocOperationMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.NcssMetric.NcssOperationMetric;
|
||||
import net.sourceforge.pmd.lang.metrics.api.Metric;
|
||||
import net.sourceforge.pmd.lang.metrics.api.MetricKey;
|
||||
|
||||
@ -20,28 +20,28 @@ public enum JavaOperationMetricKey implements MetricKey<ASTMethodOrConstructorDe
|
||||
/**
|
||||
* Access to Foreign Data.
|
||||
*
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.metrics.AtfdMetric
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.impl.AtfdMetric
|
||||
*/
|
||||
ATFD(new AtfdOperationMetric()),
|
||||
|
||||
/**
|
||||
* Cyclomatic complexity.
|
||||
*
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.metrics.CycloMetric
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.impl.CycloMetric
|
||||
*/
|
||||
CYCLO(new CycloOperationMetric()),
|
||||
|
||||
/**
|
||||
* Non Commenting Source Statements.
|
||||
*
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.metrics.NcssMetric
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.impl.NcssMetric
|
||||
*/
|
||||
NCSS(new NcssOperationMetric()),
|
||||
|
||||
/**
|
||||
* Lines of Code.
|
||||
*
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.metrics.LocMetric
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.impl.LocMetric
|
||||
*/
|
||||
LOC(new LocOperationMetric());
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl;
|
||||
|
||||
import net.sourceforge.pmd.lang.java.ast.ASTAnyTypeDeclaration;
|
||||
import net.sourceforge.pmd.lang.java.ast.ASTAnyTypeDeclaration.TypeKind;
|
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl;
|
||||
|
||||
import net.sourceforge.pmd.lang.java.ast.ASTMethodOrConstructorDeclaration;
|
||||
import net.sourceforge.pmd.lang.java.metrics.AbstractJavaMetric;
|
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl;
|
||||
|
||||
import org.apache.commons.lang3.mutable.MutableInt;
|
||||
|
||||
@ -11,8 +11,8 @@ import net.sourceforge.pmd.lang.java.ast.ASTMethodOrConstructorDeclaration;
|
||||
import net.sourceforge.pmd.lang.java.ast.JavaParserVisitor;
|
||||
import net.sourceforge.pmd.lang.java.metrics.JavaMetrics;
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaOperationMetricKey;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.visitors.CycloPathUnawareOperationVisitor;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.visitors.StandardCycloVisitor;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.visitors.CycloPathUnawareOperationVisitor;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.visitors.StandardCycloVisitor;
|
||||
import net.sourceforge.pmd.lang.metrics.api.MetricVersion;
|
||||
import net.sourceforge.pmd.lang.metrics.api.ResultOption;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl;
|
||||
|
||||
import net.sourceforge.pmd.lang.java.ast.ASTAnyTypeDeclaration;
|
||||
import net.sourceforge.pmd.lang.java.ast.ASTMethodOrConstructorDeclaration;
|
@ -2,15 +2,15 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl;
|
||||
|
||||
import org.apache.commons.lang3.mutable.MutableInt;
|
||||
|
||||
import net.sourceforge.pmd.lang.java.ast.ASTAnyTypeDeclaration;
|
||||
import net.sourceforge.pmd.lang.java.ast.ASTMethodOrConstructorDeclaration;
|
||||
import net.sourceforge.pmd.lang.java.ast.JavaParserVisitor;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.visitors.DefaultNcssVisitor;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.visitors.JavaNcssVisitor;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.visitors.DefaultNcssVisitor;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.visitors.JavaNcssVisitor;
|
||||
import net.sourceforge.pmd.lang.metrics.api.MetricVersion;
|
||||
|
||||
/**
|
@ -2,12 +2,12 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl;
|
||||
|
||||
import net.sourceforge.pmd.lang.java.ast.ASTAnyTypeDeclaration;
|
||||
import net.sourceforge.pmd.lang.java.metrics.JavaMetrics;
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaOperationMetricKey;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.CycloMetric.CycloVersion;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.CycloMetric.CycloVersion;
|
||||
import net.sourceforge.pmd.lang.metrics.api.MetricVersion;
|
||||
import net.sourceforge.pmd.lang.metrics.api.ResultOption;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics.visitors;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl.visitors;
|
||||
|
||||
import org.apache.commons.lang3.mutable.MutableInt;
|
||||
|
||||
@ -23,7 +23,7 @@ import net.sourceforge.pmd.lang.java.ast.JavaParserVisitorAdapter;
|
||||
* Visitor calculating cyclo without counting boolean operators.
|
||||
*
|
||||
* @author Clément Fournier
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.metrics.CycloMetric
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.impl.CycloMetric
|
||||
*/
|
||||
public class CycloPathUnawareOperationVisitor extends JavaParserVisitorAdapter {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics.visitors;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl.visitors;
|
||||
|
||||
import org.apache.commons.lang3.mutable.MutableInt;
|
||||
|
||||
@ -38,7 +38,7 @@ import net.sourceforge.pmd.lang.java.ast.JavaParserVisitorAdapter;
|
||||
* Default visitor for the calculation of Ncss.
|
||||
*
|
||||
* @author Clément Fournier
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.metrics.NcssMetric
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.impl.NcssMetric
|
||||
*/
|
||||
public class DefaultNcssVisitor extends JavaParserVisitorAdapter {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics.visitors;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl.visitors;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ -17,7 +17,7 @@ import net.sourceforge.pmd.lang.java.ast.ASTPackageDeclaration;
|
||||
* JavaNcss compliant visitor for the calculation of Ncss.
|
||||
*
|
||||
* @author Clément Fournier
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.metrics.NcssMetric
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.impl.NcssMetric
|
||||
*/
|
||||
public class JavaNcssVisitor extends DefaultNcssVisitor {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics.visitors;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl.visitors;
|
||||
|
||||
import org.apache.commons.lang3.mutable.MutableInt;
|
||||
|
||||
@ -21,7 +21,7 @@ import net.sourceforge.pmd.lang.java.rule.codesize.NPathComplexityRule;
|
||||
* Calculates CYCLO following the standard definition.
|
||||
*
|
||||
* @author Clément Fournier
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.metrics.CycloMetric
|
||||
* @see net.sourceforge.pmd.lang.java.metrics.impl.CycloMetric
|
||||
*/
|
||||
public class StandardCycloVisitor extends CycloPathUnawareOperationVisitor {
|
||||
|
@ -14,7 +14,7 @@ import net.sourceforge.pmd.lang.java.ast.ASTMethodOrConstructorDeclaration;
|
||||
import net.sourceforge.pmd.lang.java.metrics.JavaMetrics;
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaClassMetricKey;
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaOperationMetricKey;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.CycloMetric.CycloVersion;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.CycloMetric.CycloVersion;
|
||||
import net.sourceforge.pmd.lang.java.rule.AbstractJavaMetricsRule;
|
||||
import net.sourceforge.pmd.lang.metrics.api.Metric.Version;
|
||||
import net.sourceforge.pmd.lang.metrics.api.MetricVersion;
|
||||
|
@ -14,7 +14,7 @@ import net.sourceforge.pmd.lang.java.ast.ASTMethodOrConstructorDeclaration;
|
||||
import net.sourceforge.pmd.lang.java.metrics.JavaMetrics;
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaClassMetricKey;
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaOperationMetricKey;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.NcssMetric.NcssVersion;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.NcssMetric.NcssVersion;
|
||||
import net.sourceforge.pmd.lang.java.rule.AbstractJavaMetricsRule;
|
||||
import net.sourceforge.pmd.lang.metrics.api.Metric;
|
||||
import net.sourceforge.pmd.lang.metrics.api.MetricVersion;
|
||||
|
@ -29,8 +29,8 @@ import net.sourceforge.pmd.lang.java.ast.JavaParserVisitorReducedAdapter;
|
||||
import net.sourceforge.pmd.lang.java.ast.QualifiedName;
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaClassMetricKey;
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaOperationMetricKey;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.AbstractJavaClassMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.AbstractJavaOperationMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.AbstractJavaClassMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.AbstractJavaOperationMetric;
|
||||
import net.sourceforge.pmd.lang.java.metrics.signature.FieldSigMask;
|
||||
import net.sourceforge.pmd.lang.java.metrics.signature.FieldSignature;
|
||||
import net.sourceforge.pmd.lang.java.metrics.signature.OperationSigMask;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl;
|
||||
|
||||
import net.sourceforge.pmd.Rule;
|
||||
import net.sourceforge.pmd.lang.java.metrics.MetricsHook;
|
@ -2,13 +2,13 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaClassMetricKey;
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaOperationMetricKey;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.CycloMetric.CycloVersion;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.CycloMetric.CycloVersion;
|
||||
import net.sourceforge.pmd.lang.metrics.api.MetricVersion;
|
||||
|
||||
/**
|
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl;
|
||||
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaClassMetricKey;
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaOperationMetricKey;
|
@ -2,13 +2,13 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaClassMetricKey;
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaOperationMetricKey;
|
||||
import net.sourceforge.pmd.lang.java.metrics.metrics.NcssMetric.NcssVersion;
|
||||
import net.sourceforge.pmd.lang.java.metrics.impl.NcssMetric.NcssVersion;
|
||||
import net.sourceforge.pmd.lang.metrics.api.MetricVersion;
|
||||
|
||||
/**
|
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.metrics.metrics;
|
||||
package net.sourceforge.pmd.lang.java.metrics.impl;
|
||||
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaClassMetricKey;
|
||||
import net.sourceforge.pmd.lang.java.metrics.api.JavaOperationMetricKey;
|
@ -11,25 +11,25 @@
|
||||
|
||||
<rule name="CycloTest"
|
||||
message = "''{0}'' has value {1}."
|
||||
class="net.sourceforge.pmd.lang.java.metrics.metrics.CycloTestRule"
|
||||
class="net.sourceforge.pmd.lang.java.metrics.impl.CycloTestRule"
|
||||
metrics="true">
|
||||
</rule>
|
||||
|
||||
<rule name="NcssTest"
|
||||
message = "''{0}'' has value {1}."
|
||||
class="net.sourceforge.pmd.lang.java.metrics.metrics.NcssTestRule"
|
||||
class="net.sourceforge.pmd.lang.java.metrics.impl.NcssTestRule"
|
||||
metrics="true">
|
||||
</rule>
|
||||
|
||||
<rule name="WmcTest"
|
||||
message = "''{0}'' has value {1}."
|
||||
class="net.sourceforge.pmd.lang.java.metrics.metrics.WmcTestRule"
|
||||
class="net.sourceforge.pmd.lang.java.metrics.impl.WmcTestRule"
|
||||
metrics="true">
|
||||
</rule>
|
||||
|
||||
<rule name="LocTest"
|
||||
message = "''{0}'' has value {1}."
|
||||
class="net.sourceforge.pmd.lang.java.metrics.metrics.LocTestRule"
|
||||
class="net.sourceforge.pmd.lang.java.metrics.impl.LocTestRule"
|
||||
metrics="true">
|
||||
</rule>
|
||||
|
||||
|
Reference in New Issue
Block a user