|
|||||||||||||||||||
| 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 | |||||||||||||||
| SimpleMobisnapInterpreter.java | 0% | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
package mobisnap.mobile_trx;
|
|
| 2 |
|
|
| 3 |
import java.io.*;
|
|
| 4 |
import java.util.*;
|
|
| 5 |
|
|
| 6 |
public class SimpleMobisnapInterpreter |
|
| 7 |
{
|
|
| 8 |
private static MobisnapSQL interpreter; |
|
| 9 |
|
|
| 10 | 0 |
public SimpleMobisnapInterpreter() {
|
| 11 |
} |
|
| 12 |
|
|
| 13 | 0 |
public ASTCompilationUnit compilationUnit( Reader reader) throws Exception { |
| 14 | 0 |
if( interpreter == null) |
| 15 | 0 |
interpreter = new MobisnapSQL( reader);
|
| 16 |
else
|
|
| 17 | 0 |
interpreter.ReInit( reader); |
| 18 | 0 |
return interpreter.CompilationUnit();
|
| 19 |
} |
|
| 20 |
|
|
| 21 |
/**
|
|
| 22 |
* Process a database definition : syntax : begin (sql_ddl_statements)* end ;
|
|
| 23 |
*/
|
|
| 24 | 0 |
public ASTDatabaseDefinition databaseDefinition( Reader reader) throws Exception { |
| 25 | 0 |
if( interpreter == null) |
| 26 | 0 |
interpreter = new MobisnapSQL( reader);
|
| 27 |
else
|
|
| 28 | 0 |
interpreter.ReInit( reader); |
| 29 | 0 |
return interpreter.DatabaseDefinition();
|
| 30 |
} |
|
| 31 |
} |
|
| 32 |
|
|
||||||||||