Class NopaMetric

    • Constructor Detail

      • NopaMetric

        public NopaMetric()
    • 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>
        Overrides:
        supports in class AbstractJavaClassMetric
        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)