Clover coverage report - DynamicJava Test Coverage (dynamicjava-20120303-r5436)
Coverage timestamp: Sat Mar 3 2012 03:02:19 CST
file stats: LOC: 89   Methods: 8
NCLOC: 51   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
RawClassType.java 40% 55.6% 62.5% 53.3%
coverage coverage
 1    package edu.rice.cs.dynamicjava.symbol.type;
 2   
 3    import edu.rice.cs.dynamicjava.symbol.*;
 4   
 5    /**
 6    * Class RawClassType, a component of the ASTGen-generated composite hierarchy.
 7    * Note: null is not allowed as a value for any field.
 8    * @version Generated automatically by ASTGen at Sat Mar 03 03:01:27 CST 2012
 9    */
 10    @SuppressWarnings("unused")
 11    public class RawClassType extends ClassType {
 12   
 13    /**
 14    * Constructs a RawClassType.
 15    * @throws java.lang.IllegalArgumentException If any parameter to the constructor is null.
 16    */
 17  17942 public RawClassType(DJClass in_ofClass) {
 18  17942 super(in_ofClass);
 19    }
 20   
 21   
 22  37189 public <RetType> RetType apply(TypeVisitor<RetType> visitor) {
 23  37189 return visitor.forRawClassType(this);
 24    }
 25   
 26  16 public void apply(TypeVisitor_void visitor) {
 27  16 visitor.forRawClassType(this);
 28    }
 29   
 30    /**
 31    * Implementation of toString that uses
 32    * {@link #output} to generate a nicely tabbed tree.
 33    */
 34  0 public java.lang.String toString() {
 35  0 java.io.StringWriter w = new java.io.StringWriter();
 36  0 walk(new ToStringWalker(w, 2));
 37  0 return w.toString();
 38    }
 39   
 40    /**
 41    * Prints this object out as a nicely tabbed tree.
 42    */
 43  0 public void output(java.io.Writer writer) {
 44  0 walk(new ToStringWalker(writer, 2));
 45    }
 46   
 47    /**
 48    * Implementation of equals that is based on the values of the fields of the
 49    * object. Thus, two objects created with identical parameters will be equal.
 50    */
 51  60579 public boolean equals(java.lang.Object obj) {
 52  0 if (obj == null) return false;
 53  60579 if ((obj.getClass() != this.getClass()) || (obj.hashCode() != this.hashCode())) {
 54  18162 return false;
 55    }
 56    else {
 57  42417 RawClassType casted = (RawClassType) obj;
 58  42417 DJClass temp_ofClass = ofClass();
 59  42417 DJClass casted_ofClass = casted.ofClass();
 60  0 if (!(temp_ofClass == casted_ofClass || temp_ofClass.equals(casted_ofClass))) return false;
 61  42417 return true;
 62    }
 63    }
 64   
 65   
 66    /**
 67    * Implementation of hashCode that is consistent with equals. The value of
 68    * the hashCode is formed by XORing the hashcode of the class object with
 69    * the hashcodes of all the fields of the object.
 70    */
 71  8287 public int generateHashCode() {
 72  8287 int code = getClass().hashCode();
 73  8287 DJClass temp_ofClass = ofClass();
 74  8287 code ^= temp_ofClass.hashCode();
 75  8287 return code;
 76    }
 77   
 78  0 public void walk(TreeWalker w) {
 79  0 if (w.visitNode(this, "RawClassType", 1)) {
 80  0 DJClass temp_ofClass = ofClass();
 81  0 if (w.visitNodeField("ofClass", temp_ofClass)) {
 82  0 w.visitUnknownObject(temp_ofClass);
 83  0 w.endNodeField("ofClass", temp_ofClass);
 84    }
 85  0 w.endNode(this, "RawClassType", 1);
 86    }
 87    }
 88   
 89    }