Class WocMetric
- 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.WocMetric
-
- All Implemented Interfaces:
JavaClassMetric
,Metric<ASTAnyTypeDeclaration>
public class WocMetric extends AbstractJavaClassMetric
Weight of class.- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Constructor Summary
Constructors Constructor Description WocMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
computeFor(ASTAnyTypeDeclaration node, MetricOptions options)
boolean
supports(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
-
Methods inherited from class net.sourceforge.pmd.lang.metrics.AbstractMetric
equals, hashCode
-
-
-
-
Method Detail
-
supports
public boolean supports(ASTAnyTypeDeclaration node)
Description copied from class:AbstractJavaClassMetric
Returns true if the metric can be computed on this type declaration. By default, annotation and interface declarations are filtered out.- Specified by:
supports
in interfaceMetric<ASTAnyTypeDeclaration>
- Overrides:
supports
in classAbstractJavaClassMetric
- Parameters:
node
- The type declaration- Returns:
- True if the metric can be computed on this type declaration
-
computeFor
public double computeFor(ASTAnyTypeDeclaration node, MetricOptions options)
-
-