Clover coverage report - Replica - 1.0-Alpha
Coverage timestamp: Dom Fev 1 2004 17:00:58 WET
file stats: LOC: 76   Methods: 9
NCLOC: 57   Classes: 2
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
ASTGetReservation.java - 0% 0% 0%
coverage
 1   
 /* JJT:    0.2.2 */
 2   
 
 3   
 package    mobisnap.mobile_trx;
 4   
 
 5   
 import java.util.*;
 6   
 
 7   
 public class ASTGetReservation    extends    mobisnap.mobile_trx.SimpleNode {
 8   
     public int type;
 9   
     public ASTTableColumn columnname;
 10   
     public ASTTableReference tablename;
 11   
     public ASTPlSqlSimpleExpression duration;
 12   
     public ASTPlSqlSimpleExpression expires;
 13   
     public ASTPlSqlSimpleExpression value;
 14   
     public ASTPlSqlSimpleExpression instances;
 15   
 
 16   
     class Column {
 17   
         ASTTableColumn column;
 18   
         ASTRelop relop;
 19   
         ASTPlSqlSimpleExpression expr;
 20   
         
 21  0
         public Column( ASTTableColumn column, ASTRelop relop, ASTPlSqlSimpleExpression expr) {
 22  0
             this.column = column;
 23  0
             this.relop = relop;
 24  0
             this.expr = expr;
 25   
         }
 26   
 
 27   
     };
 28   
     Vector specification;
 29   
     Vector slot;
 30   
     
 31   
 
 32  0
     public ASTGetReservation(int id) {
 33  0
         super(id);
 34  0
         specification = new Vector();
 35  0
         slot = new Vector();
 36   
     }
 37   
 
 38  0
     public ASTGetReservation( MobisnapSQL p, int i) {
 39  0
         super( p, i);
 40  0
         id = i;
 41  0
         specification = new Vector();
 42   
     }
 43   
     
 44   
     /** Accept the visitor. **/
 45  0
     public Object jjtAccept(MobisnapSQLVisitor visitor, Object data) {
 46  0
         return visitor.visit(this, data);
 47   
     }
 48   
     
 49  0
     public void insert( ASTTableColumn column, ASTRelop relop, ASTPlSqlSimpleExpression expr) {
 50  0
         specification.addElement( new Column( column, relop, expr));
 51   
     }
 52   
     
 53  0
     public void insertSlot( ASTTableColumn column, ASTRelop relop, ASTPlSqlSimpleExpression expr) {
 54  0
         slot.addElement( new Column( column, relop, expr));
 55   
     }
 56   
     
 57  0
     public int numConditions() {
 58  0
         return specification.size();
 59   
     }
 60   
     
 61  0
     public ColumnCondition getSlot( int num) throws Exception {
 62  0
         Column column = (Column)slot.elementAt( num);
 63  0
         StringBuffer buffer = new StringBuffer();
 64  0
         column.column.sourceCode( mobisnap.MobisnapConstants.MSQL_SERVER, buffer);
 65  0
         return new RelopCondition( buffer.toString().trim(), column.relop.type, column.expr.value( mobisnap.MobisnapConstants.MSQL_SERVER, false));
 66   
     }
 67   
     
 68  0
     public ColumnCondition getColumnCond( int num) throws Exception {
 69  0
         Column column = (Column)specification.elementAt( num);
 70  0
         StringBuffer buffer = new StringBuffer();
 71  0
         column.column.sourceCode( mobisnap.MobisnapConstants.MSQL_SERVER, buffer);
 72  0
         return new RelopCondition( buffer.toString().trim(), column.relop.type, column.expr.value( mobisnap.MobisnapConstants.MSQL_SERVER, false));
 73   
     }
 74   
 
 75   
 }
 76