Clover coverage report - DynamicJava Test Coverage (dynamicjava-20130615-r5436)
Coverage timestamp: Sat Jun 15 2013 03:01:32 CDT
file stats: LOC: 33   Methods: 5
NCLOC: 18   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
LocalVariable.java - 85.7% 80% 83.3%
coverage coverage
 1    package edu.rice.cs.dynamicjava.symbol;
 2   
 3    import edu.rice.cs.dynamicjava.symbol.type.Type;
 4   
 5    /** Represents a local variable declaration. To allow usage as a key in maps, every instance is
 6    * considered unique, and clients should not create multiple instances to describe the same entity.
 7    */
 8    public class LocalVariable implements Variable {
 9    private final String _name;
 10    private final Type _type;
 11    private final boolean _isFinal;
 12   
 13    /**
 14    * Create a local variable with the given name, type, and "final" modifier. Until sophisticated
 15    * control-flow analysis is implemented, variables that are declared final but uninitialized
 16    * should be considered non-final.
 17    */
 18  2857 public LocalVariable(String name, Type type, boolean isFinal) {
 19  2857 _name = name;
 20  2857 _type = type;
 21  2857 _isFinal = isFinal;
 22    }
 23   
 24  6219 public String declaredName() { return _name; }
 25   
 26  5976 public Type type() { return _type; }
 27   
 28  478 public boolean isFinal() { return _isFinal; }
 29   
 30  0 public String toString() {
 31  0 return "LocalVariable(" + _name + ": " + _type + ")@" + Integer.toHexString(hashCode());
 32    }
 33    }