Clover coverage report - DynamicJava Test Coverage (dynamicjava-20110903-r5436)
Coverage timestamp: Sat Sep 3 2011 03:02:20 CDT
file stats: LOC: 91   Methods: 6
NCLOC: 25   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ContinueStatement.java - 71.4% 66.7% 69.2%
coverage coverage
 1    /*
 2    * DynamicJava - Copyright (C) 1999-2001
 3    *
 4    * Permission is hereby granted, free of charge, to any person obtaining a
 5    * copy of this software and associated documentation files
 6    * (the "Software"), to deal in the Software without restriction, including
 7    * without limitation the rights to use, copy, modify, merge, publish,
 8    * distribute, sublicense, and/or sell copies of the Software, and to permit
 9    * persons to whom the Software is furnished to do so, subject to the
 10    * following conditions:
 11    * The above copyright notice and this permission notice shall be included
 12    * in all copies or substantial portions of the Software.
 13    *
 14    * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 15    * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 16    * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 17    * IN NO EVENT SHALL DYADE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 18    * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 19    * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 20    * DEALINGS IN THE SOFTWARE.
 21    *
 22    * Except as contained in this notice, the name of Dyade shall not be
 23    * used in advertising or otherwise to promote the sale, use or other
 24    * dealings in this Software without prior written authorization from
 25    * Dyade.
 26    *
 27    */
 28   
 29    package koala.dynamicjava.tree;
 30   
 31    import koala.dynamicjava.tree.visitor.*;
 32   
 33    /**
 34    * This class represents the continue statement nodes of the syntax tree
 35    *
 36    * @author Stephane Hillion
 37    * @version 1.0 - 1999/05/23
 38    */
 39   
 40    public class ContinueStatement extends Statement {
 41    /**
 42    * The label
 43    */
 44    private String label;
 45   
 46    /**
 47    * Creates a new while statement
 48    * @param label the label
 49    */
 50  1 public ContinueStatement(String label) {
 51  1 this(label, SourceInfo.NONE);
 52    }
 53   
 54    /**
 55    * Creates a new while statement
 56    * @param label the label
 57    */
 58  2 public ContinueStatement(String label,
 59    SourceInfo si) {
 60  2 super(si);
 61  2 this.label = label;
 62    }
 63   
 64    /**
 65    * Gets the label
 66    */
 67  2 public String getLabel() {
 68  2 return label;
 69    }
 70   
 71    /**
 72    * Sets the label
 73    */
 74  0 public void setLabel(String s) {
 75  0 label = s;
 76    }
 77   
 78    /**
 79    * Allows a visitor to traverse the tree
 80    * @param visitor the visitor to accept
 81    */
 82  0 public <T> T acceptVisitor(Visitor<T> visitor) {
 83  0 return visitor.visit(this);
 84    }
 85    /**
 86    * Implementation of toString for use in unit testing
 87    */
 88  2 public String toString() {
 89  2 return "("+getClass().getName()+": "+getLabel()+")";
 90    }
 91    }