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