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