Clover coverage report - Replica - 1.0-Alpha
Coverage timestamp: Dom Fev 1 2004 17:00:58 WET
file stats: LOC: 69   Methods: 4
NCLOC: 48   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
ASTMonitorName.java 0% 0% 0% 0%
coverage
 1   
 /* JJT:    0.2.2 */
 2   
 
 3   
 package    mobisnap.mobile_trx;
 4   
 
 5   
 /**
 6   
  * Implements table reference
 7   
  */
 8   
 public class ASTMonitorName extends mobisnap.mobile_trx.SimpleNode {
 9   
     String s1, s2, s3;
 10   
     
 11  0
     public ASTMonitorName(int id) {
 12  0
         super(id);
 13   
     }
 14   
 
 15  0
     public ASTMonitorName( MobisnapSQL p, int i) {
 16  0
         super( p, i);
 17  0
         id = i;
 18   
     }
 19   
     
 20   
     /** Accept the visitor. **/
 21  0
     public Object jjtAccept(MobisnapSQLVisitor visitor, Object data) {
 22  0
         return visitor.visit(this, data);
 23   
     }
 24   
     
 25   
     /**
 26   
      * Displays the source code of the node
 27   
      * 
 28   
      * @param msql_type Specifies which type of processing should be performed
 29   
      *        MobisnapConstants.MSQL_SERVER = 1
 30   
      *        MobisnapConstants.MSQL_TENTATIVE_CLIENT = 2
 31   
      *        MobisnapConstants.MSQL_STABLE_CLIENT = 3
 32   
      */
 33  0
     public void    sourceCode(    int msql_type, StringBuffer buffer) throws Exception {
 34  0
         if( msql_type == mobisnap.MobisnapConstants.MSQL_ORIGINAL) {
 35  0
             super.sourceCode( msql_type, buffer);
 36  0
             return;
 37   
         }
 38  0
         if( s2 == null) {
 39  0
             try {
 40  0
                 buffer.append( " ");
 41  0
                 Object obj = MobisnapSQL.names.getName( s1).getValue();
 42  0
                 if( obj instanceof String) {
 43  0
                     buffer.append( "'");
 44  0
                     buffer.append( obj.toString());
 45  0
                     buffer.append( "'");
 46  0
                 } else if( obj instanceof java.sql.Date)
 47  0
                     buffer.append( MSQLTypeUtil.date2String( (java.sql.Date)obj));
 48   
                 else
 49  0
                     buffer.append( obj.toString());
 50  0
                 buffer.append( " ");
 51  0
                 return;
 52   
             } catch( Exception e) {
 53   
                 // do nothing
 54   
             }
 55   
         }
 56  0
         buffer.append( " ");
 57  0
         buffer.append( s1);
 58  0
         if( s2 != null) {
 59  0
             buffer.append( ".");
 60  0
             buffer.append( s2);
 61   
         }
 62  0
         if( s3 != null) {
 63  0
             buffer.append( ".");
 64  0
             buffer.append( s3);
 65   
         }
 66  0
         buffer.append( " ");
 67   
     }
 68   
 }
 69