Clover coverage report - PMD - 3.7
Coverage timestamp: Wed May 31 2006 09:25:59 EDT
file stats: LOC: 59   Methods: 8
NCLOC: 44   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ASTPrimaryPrefix.java 0% 38.9% 87.5% 41.2%
coverage coverage
 1    /* Generated By:JJTree: Do not edit this line. ASTPrimaryPrefix.java */
 2   
 3    package net.sourceforge.pmd.ast;
 4   
 5    public class ASTPrimaryPrefix extends SimpleJavaNode {
 6  3 public ASTPrimaryPrefix(int id) {
 7  3 super(id);
 8    }
 9   
 10  3019 public ASTPrimaryPrefix(JavaParser p, int id) {
 11  3019 super(p, id);
 12    }
 13   
 14    private boolean usesThisModifier;
 15    private boolean usesSuperModifier;
 16   
 17  31 public void setUsesThisModifier() {
 18  31 usesThisModifier = true;
 19    }
 20   
 21  2960 public boolean usesThisModifier() {
 22  2960 return this.usesThisModifier;
 23    }
 24   
 25  25 public void setUsesSuperModifier() {
 26  25 usesSuperModifier = true;
 27    }
 28   
 29  2954 public boolean usesSuperModifier() {
 30  2954 return this.usesSuperModifier;
 31    }
 32   
 33  0 public void dump(String prefix) {
 34  0 String out = getImage();
 35  0 if (usesSuperModifier) {
 36  0 out = "super." + out;
 37  0 } else if (usesThisModifier) {
 38  0 if (getImage() == null) {
 39  0 out = "this";
 40    } else {
 41  0 out = "this." + out;
 42    }
 43    }
 44   
 45  0 if (out == null) {
 46  0 System.out.println(toString(prefix));
 47    } else {
 48  0 System.out.println(toString(prefix) + ":" + out);
 49    }
 50  0 dumpChildren(prefix);
 51    }
 52   
 53    /**
 54    * Accept the visitor. *
 55    */
 56  7963 public Object jjtAccept(JavaParserVisitor visitor, Object data) {
 57  7963 return visitor.visit(this, data);
 58    }
 59    }