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
VarargArrayType.java 0% 11.1% 37.5% 13.3%
coverage coverage
 1    package edu.rice.cs.dynamicjava.symbol.type;
 2   
 3    import edu.rice.cs.dynamicjava.symbol.*;
 4   
 5    /**
 6    * Class VarargArrayType, 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 VarargArrayType extends ArrayType {
 12   
 13    /**
 14    * Constructs a VarargArrayType.
 15    * @throws java.lang.IllegalArgumentException If any parameter to the constructor is null.
 16    */
 17  98 public VarargArrayType(Type in_ofType) {
 18  98 super(in_ofType);
 19    }
 20   
 21   
 22  354 public <RetType> RetType apply(TypeVisitor<RetType> visitor) {
 23  354 return visitor.forVarargArrayType(this);
 24    }
 25   
 26  172 public void apply(TypeVisitor_void visitor) {
 27  172 visitor.forVarargArrayType(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  0 public boolean equals(java.lang.Object obj) {
 52  0 if (obj == null) return false;
 53  0 if ((obj.getClass() != this.getClass()) || (obj.hashCode() != this.hashCode())) {
 54  0 return false;
 55    }
 56    else {
 57  0 VarargArrayType casted = (VarargArrayType) obj;
 58  0 Type temp_ofType = ofType();
 59  0 Type casted_ofType = casted.ofType();
 60  0 if (!(temp_ofType == casted_ofType || temp_ofType.equals(casted_ofType))) return false;
 61  0 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  0 public int generateHashCode() {
 72  0 int code = getClass().hashCode();
 73  0 Type temp_ofType = ofType();
 74  0 code ^= temp_ofType.hashCode();
 75  0 return code;
 76    }
 77   
 78  0 public void walk(TreeWalker w) {
 79  0 if (w.visitNode(this, "VarargArrayType", 1)) {
 80  0 Type temp_ofType = ofType();
 81  0 if (w.visitNodeField("ofType", temp_ofType)) {
 82  0 temp_ofType.walk(w);
 83  0 w.endNodeField("ofType", temp_ofType);
 84    }
 85  0 w.endNode(this, "VarargArrayType", 1);
 86    }
 87    }
 88   
 89    }