Clover coverage report - Replica - 1.0-Alpha
Coverage timestamp: Dom Fev 1 2004 17:00:58 WET
file stats: LOC: 52   Methods: 5
NCLOC: 28   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
MSQLTFunPrint.java 0% 0% 0% 0%
coverage
 1   
 package mobisnap.mobile_trx;
 2   
 
 3   
 import mobisnap.*;
 4   
 
 5   
 /**
 6   
  * Used to represent the print funtion internally
 7   
  */
 8   
 public class MSQLTFunPrint
 9   
     implements MSQLTFunction
 10   
 {
 11  0
     public MSQLTFunPrint() {
 12   
         // do nothing
 13   
     }
 14   
 
 15   
     /**
 16   
      * Returns the value of the variable
 17   
      */
 18  0
     public Object getValue() throws Exception {
 19  0
         throw new mobisnap.MobisnapException( "Print: getValue requires 1 parameter");
 20   
     }
 21   
     
 22   
     /**
 23   
      * Returns the value of the function / executes subroutine
 24   
      */
 25  0
     public Object getValue( Object[] params) throws Exception {
 26  0
         if( params == null || params.length != 1)
 27  0
             throw new mobisnap.MobisnapException( "Print: getValue requires 1 parameter");
 28  0
         System.err.println( MSQLTypeUtil.value2String( params[0]));
 29  0
         return null;
 30   
     }
 31   
     
 32   
     /**
 33   
      * Sets the value of the given variable
 34   
      */
 35  0
     public void setValue( Object obj) throws Exception {
 36  0
         throw new mobisnap.MobisnapException( "setValue can not be applied to functions");
 37   
     }
 38   
 
 39   
     /**
 40   
      * Returns true if the following parameters can be the parameters of
 41   
      * the function
 42   
      */
 43  0
     public boolean parametersOK( Object[] params) {
 44  0
         if( params == null || params.length != 3)
 45  0
             return false;
 46  0
         for( int i = 0; i < 3; i++)
 47  0
             if( ! ( params[i] instanceof String))
 48  0
                 return false;
 49  0
         return true;
 50   
     }
 51   
 }
 52