Clover coverage report - Java Language Levels Test Coverage (javalanglevels-20120305-r5436)
Coverage timestamp: Sun Mar 4 2012 22:02:46 CST
file stats: LOC: 104   Methods: 8
NCLOC: 64   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
SimpleUninitializedArrayInstantiation.java 21.4% 46.5% 37.5% 40%
coverage coverage
 1    package edu.rice.cs.javalanglevels.tree;
 2   
 3    import edu.rice.cs.javalanglevels.SourceInfo;
 4   
 5    /**
 6    * Class SimpleUninitializedArrayInstantiation, a component of the JExpressionIF composite hierarchy.
 7    * Note: null is not allowed as a value for any field.
 8    * @version Generated automatically by ASTGen at Sun Mar 04 22:01:28 CST 2012
 9    */
 10    public class SimpleUninitializedArrayInstantiation extends UninitializedArrayInstantiation {
 11   
 12    /**
 13    * Constructs a SimpleUninitializedArrayInstantiation.
 14    * @throws java.lang.IllegalArgumentException If any parameter to the constructor is null.
 15    */
 16  21 public SimpleUninitializedArrayInstantiation(SourceInfo in_sourceInfo, Type in_type, DimensionExpressionList in_dimensionSizes) {
 17  21 super(in_sourceInfo, in_type, in_dimensionSizes);
 18    }
 19   
 20   
 21  11 public <RetType> RetType visit(JExpressionIFVisitor<RetType> visitor) { return visitor.forSimpleUninitializedArrayInstantiation(this); }
 22  0 public void visit(JExpressionIFVisitor_void visitor) { visitor.forSimpleUninitializedArrayInstantiation(this); }
 23   
 24    /**
 25    * Implementation of toString that uses
 26    * {@link #output} to generated nicely tabbed tree.
 27    */
 28  0 public java.lang.String toString() {
 29  0 java.io.StringWriter w = new java.io.StringWriter();
 30  0 output(w);
 31  0 return w.toString();
 32    }
 33   
 34    /**
 35    * Prints this object out as a nicely tabbed tree.
 36    */
 37  0 public void output(java.io.Writer writer) {
 38  0 outputHelp(new TabPrintWriter(writer, 2));
 39    }
 40   
 41  20 public void outputHelp(TabPrintWriter writer) {
 42  20 writer.print("SimpleUninitializedArrayInstantiation" + ":");
 43  20 writer.indent();
 44   
 45  20 writer.startLine("");
 46  20 writer.print("sourceInfo = ");
 47  20 SourceInfo temp_sourceInfo = getSourceInfo();
 48  20 if (temp_sourceInfo == null) {
 49  0 writer.print("null");
 50    } else {
 51  20 writer.print(temp_sourceInfo);
 52    }
 53   
 54  20 writer.startLine("");
 55  20 writer.print("type = ");
 56  20 Type temp_type = getType();
 57  20 if (temp_type == null) {
 58  0 writer.print("null");
 59    } else {
 60  20 temp_type.outputHelp(writer);
 61    }
 62   
 63  20 writer.startLine("");
 64  20 writer.print("dimensionSizes = ");
 65  20 DimensionExpressionList temp_dimensionSizes = getDimensionSizes();
 66  20 if (temp_dimensionSizes == null) {
 67  0 writer.print("null");
 68    } else {
 69  20 temp_dimensionSizes.outputHelp(writer);
 70    }
 71  20 writer.unindent();
 72    }
 73   
 74    /**
 75    * Implementation of equals that is based on the values
 76    * of the fields of the object. Thus, two objects
 77    * created with identical parameters will be equal.
 78    */
 79  0 public boolean equals(java.lang.Object obj) {
 80  0 if (obj == null) return false;
 81  0 if ((obj.getClass() != this.getClass()) || (obj.hashCode() != this.hashCode())) {
 82  0 return false;
 83    } else {
 84  0 SimpleUninitializedArrayInstantiation casted = (SimpleUninitializedArrayInstantiation) obj;
 85  0 if (! (getType().equals(casted.getType()))) return false;
 86  0 if (! (getDimensionSizes().equals(casted.getDimensionSizes()))) return false;
 87  0 return true;
 88    }
 89    }
 90   
 91    /**
 92    * Implementation of hashCode that is consistent with
 93    * equals. The value of the hashCode is formed by
 94    * XORing the hashcode of the class object with
 95    * the hashcodes of all the fields of the object.
 96    */
 97  0 protected int generateHashCode() {
 98  0 int code = getClass().hashCode();
 99  0 code ^= 0;
 100  0 code ^= getType().hashCode();
 101  0 code ^= getDimensionSizes().hashCode();
 102  0 return code;
 103    }
 104    }