Clover coverage report - DynamicJava Test Coverage (dynamicjava-20130622-r5436)
Coverage timestamp: Sat Jun 22 2013 03:01:29 CDT
file stats: LOC: 35   Methods: 6
NCLOC: 25   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
Annotation.java 50% 60% 50% 55.6%
coverage coverage
 1    package koala.dynamicjava.tree;
 2   
 3    import java.util.List;
 4   
 5    import edu.rice.cs.plt.tuple.Pair;
 6    import koala.dynamicjava.tree.visitor.Visitor;
 7   
 8    public class Annotation extends Expression {
 9   
 10    private final ReferenceTypeName type;
 11    private final List<Pair<String, Expression>> values;
 12   
 13  8 public Annotation(ReferenceTypeName t, List<Pair<String, Expression>> vals) {
 14  8 this(t, vals, SourceInfo.NONE);
 15    }
 16   
 17  16 public Annotation(ReferenceTypeName t, List<Pair<String, Expression>> vals, SourceInfo si) {
 18  16 super(si);
 19  0 if (t == null || vals == null) { throw new IllegalArgumentException(); }
 20  16 type = t;
 21  16 values = vals;
 22    }
 23   
 24  0 public ReferenceTypeName getType() { return type; }
 25  0 public List<Pair<String, Expression>> getValues() { return values; }
 26   
 27  0 @Override public <T> T acceptVisitor(Visitor<T> visitor) {
 28  0 return visitor.visit(this);
 29    }
 30   
 31  16 public String toString() {
 32  16 return "(" + getClass().getName() + ": " + type + ", " + values + ")";
 33    }
 34   
 35    }