Clover coverage report - DynamicJava Test Coverage (dynamicjava-20130622-r5436)
Coverage timestamp: Sat Jun 22 2013 03:01:29 CDT
file stats: LOC: 67   Methods: 3
NCLOC: 13   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
MinusExpression.java - 66.7% 66.7% 66.7%
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 minus expression nodes of the syntax tree
 35    *
 36    * @author Stephane Hillion
 37    * @version 1.0 - 1999/04/25
 38    */
 39   
 40    public class MinusExpression extends UnaryExpression {
 41    /**
 42    * Initializes the expression
 43    * @param exp the target expression
 44    * @exception IllegalArgumentException if exp is null
 45    */
 46  0 public MinusExpression(Expression exp) {
 47  0 this(exp, SourceInfo.NONE);
 48    }
 49   
 50    /**
 51    * Initializes the expression
 52    * @param exp the target expression
 53    * @exception IllegalArgumentException if exp is null
 54    */
 55  4 public MinusExpression(Expression exp, SourceInfo si) {
 56  4 super(exp, si);
 57    }
 58   
 59    /**
 60    * Allows a visitor to traverse the tree
 61    * @param visitor the visitor to accept
 62    */
 63  8 public <T> T acceptVisitor(Visitor<T> visitor) {
 64  8 return visitor.visit(this);
 65    }
 66   
 67    }