Clover coverage report - PMD - 3.9
Coverage timestamp: Tue Dec 19 2006 09:38:44 EST
file stats: LOC: 41   Methods: 6
NCLOC: 28   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
JavaTypeHandler.java - 100% 100% 100%
coverage
 1    package net.sourceforge.pmd.sourcetypehandlers;
 2   
 3    import net.sourceforge.pmd.ast.ASTCompilationUnit;
 4    import net.sourceforge.pmd.dfa.DataFlowFacade;
 5    import net.sourceforge.pmd.symboltable.SymbolFacade;
 6    import net.sourceforge.pmd.typeresolution.TypeResolutionFacade;
 7   
 8    /**
 9    * Implementation of VisitorsFactory for the Java AST. It uses anonymous classes
 10    * as adapters of the visitors to the VisitorStarter interface.
 11    *
 12    * @author pieter_van_raemdonck - Application Engineers NV/SA - www.ae.be
 13    */
 14    public abstract class JavaTypeHandler implements SourceTypeHandler {
 15   
 16  5 public VisitorStarter getDataFlowFacade() {
 17  5 return new VisitorStarter() {
 18  5 public void start(Object rootNode) {
 19  5 new DataFlowFacade().initializeWith((ASTCompilationUnit) rootNode);
 20    }
 21    };
 22    }
 23   
 24  1236 public VisitorStarter getSymbolFacade() {
 25  1236 return new VisitorStarter() {
 26  1236 public void start(Object rootNode) {
 27  1236 new SymbolFacade().initializeWith((ASTCompilationUnit) rootNode);
 28    }
 29    };
 30    }
 31   
 32  18 public VisitorStarter getTypeResolutionFacade() {
 33  18 return new VisitorStarter() {
 34  18 public void start(Object rootNode) {
 35  18 new TypeResolutionFacade().initializeWith((ASTCompilationUnit) rootNode);
 36    }
 37    };
 38    }
 39   
 40   
 41    }