Class WocMetric

    • Constructor Detail

      • WocMetric

        public WocMetric()
    • 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 interface net.sourceforge.pmd.lang.metrics.Metric<ASTAnyTypeDeclaration>
        supports in class AbstractJavaClassMetric
        node - The type declaration
        True if the metric can be computed on this type declaration
      • computeFor

        public double computeFor​(ASTAnyTypeDeclaration node,
                                 net.sourceforge.pmd.lang.metrics.MetricOptions options)