|
|||||||||||||||||||
| 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 | |||||||||||||||
| ASTConstantDeclaration.java | 0% | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
/* JJT: 0.2.2 */
|
|
| 2 |
|
|
| 3 |
package mobisnap.mobile_trx;
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
/**
|
|
| 7 |
* Variable declaration
|
|
| 8 |
*/
|
|
| 9 |
public class ASTConstantDeclaration extends mobisnap.mobile_trx.SimpleNode { |
|
| 10 |
public String name;
|
|
| 11 |
public ASTTypeDeclaration td;
|
|
| 12 |
public boolean notnull = false; |
|
| 13 |
public ASTPlSqlExpression initValue = null; |
|
| 14 |
|
|
| 15 | 0 |
public ASTConstantDeclaration(int id) { |
| 16 | 0 |
super(id);
|
| 17 |
} |
|
| 18 |
|
|
| 19 | 0 |
public ASTConstantDeclaration( MobisnapSQL p, int i) { |
| 20 | 0 |
super( p, i);
|
| 21 | 0 |
id = i; |
| 22 |
} |
|
| 23 |
|
|
| 24 |
/** Accept the visitor. **/
|
|
| 25 | 0 |
public Object jjtAccept(MobisnapSQLVisitor visitor, Object data) {
|
| 26 | 0 |
return visitor.visit(this, data); |
| 27 |
} |
|
| 28 |
|
|
| 29 | 0 |
public void process( int msql_type) throws Exception { |
| 30 | 0 |
MSQLTVariable var = td.getInstance( true, notnull);
|
| 31 | 0 |
if( initValue != null) |
| 32 | 0 |
var.setValue( initValue.value( msql_type, false));
|
| 33 | 0 |
MobisnapSQL.names.newVariable( name, var); |
| 34 |
} |
|
| 35 |
|
|
| 36 |
} |
|
| 37 |
|
|
||||||||||