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 public ASTConstantDeclaration(int id) {
16 super(id);
17 }
18
19 public ASTConstantDeclaration( MobisnapSQL p, int i) {
20 super( p, i);
21 id = i;
22 }
23
24 /*** Accept the visitor. **/
25 public Object jjtAccept(MobisnapSQLVisitor visitor, Object data) {
26 return visitor.visit(this, data);
27 }
28
29 public void process( int msql_type) throws Exception {
30 MSQLTVariable var = td.getInstance( true, notnull);
31 if( initValue != null)
32 var.setValue( initValue.value( msql_type, false));
33 MobisnapSQL.names.newVariable( name, var);
34 }
35
36 }
This page was automatically generated by Maven