Class NoamMetric
- java.lang.Object
-
- net.sourceforge.pmd.lang.metrics.AbstractMetric<N>
-
- net.sourceforge.pmd.lang.java.metrics.AbstractJavaMetric<ASTAnyTypeDeclaration>
-
- net.sourceforge.pmd.lang.java.metrics.impl.AbstractJavaClassMetric
-
- net.sourceforge.pmd.lang.java.metrics.impl.NoamMetric
-
- All Implemented Interfaces:
JavaClassMetric,net.sourceforge.pmd.lang.metrics.Metric<ASTAnyTypeDeclaration>
public class NoamMetric extends AbstractJavaClassMetric
Number of accessor methods.- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Constructor Summary
Constructors Constructor Description NoamMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecomputeFor(ASTAnyTypeDeclaration node, net.sourceforge.pmd.lang.metrics.MetricOptions options)booleansupports(ASTAnyTypeDeclaration node)Returns true if the metric can be computed on this type declaration.-
Methods inherited from class net.sourceforge.pmd.lang.java.metrics.impl.AbstractJavaClassMetric
countMatchingFieldSigs, countMatchingOpSigs, getFields, getMethodsAndConstructors
-
-
-
-
Method Detail
-
supports
public boolean supports(ASTAnyTypeDeclaration node)
Description copied from class:AbstractJavaClassMetricReturns true if the metric can be computed on this type declaration. By default, annotation and interface declarations are filtered out.- Specified by:
supportsin interfacenet.sourceforge.pmd.lang.metrics.Metric<ASTAnyTypeDeclaration>- Overrides:
supportsin classAbstractJavaClassMetric- Parameters:
node- The type declaration- Returns:
- True if the metric can be computed on this type declaration
-
computeFor
public double computeFor(ASTAnyTypeDeclaration node, net.sourceforge.pmd.lang.metrics.MetricOptions options)
-
-