MetricUtils { public static int computeMultiLineComments( final ICommentHolder commentHolder ) { int lines = 0; for ( final IParserNode comment : commentHolder.getMultiLinesComment() ) { lines += comment.getStringValue() == null ? 0 : MetricUtils.computeNbOfLines( comment.getStringValue() ); } return lines; } private  MetricUtils(); static int computeAsDocs( final IAsDocHolder attribute ); static int computeMultiLineComments( final ICommentHolder commentHolder ); static int computeNbOfLines( final String lines ); static String getQualifiedName( final File sourceDirectory,
                                          final File file );  }
@Test public void testComputeMultiLineComments() throws PMDException { final IFlexFile file = getTestFiles().get( "bug.FlexPMD60.as" ); final IParserNode ast = FileSetUtils.buildAst( file ); final IClass classNode = NodeFactory.createPackage( ast ).getClassNode(); assertEquals( 6, MetricUtils.computeMultiLineComments( classNode ) ); }