~sgdg/stado/stado30

« back to all changes in this revision

Viewing changes to src/org/postgresql/stado/parser/core/syntaxtree/UpdateTable.java

  • Committer: Jim Mlodgenski
  • Date: 2011-11-09 20:39:51 UTC
  • Revision ID: jim@cirrusql.com-20111109203951-bpj0woiwl76xkezn
Changes necessary to handle the updated versions of JTB and JavaCC

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************************
2
 
 * Copyright (C) 2008 EnterpriseDB Corporation.
3
 
 * Copyright (C) 2011 Stado Global Development Group.
4
 
 *
5
 
 * This file is part of Stado.
6
 
 *
7
 
 * Stado is free software: you can redistribute it and/or modify
8
 
 * it under the terms of the GNU General Public License as published by
9
 
 * the Free Software Foundation, either version 3 of the License, or
10
 
 * (at your option) any later version.
11
 
 *
12
 
 * Stado is distributed in the hope that it will be useful,
13
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
 * GNU General Public License for more details.
16
 
 *
17
 
 * You should have received a copy of the GNU General Public License
18
 
 * along with Stado.  If not, see <http://www.gnu.org/licenses/>.
19
 
 *
20
 
 * You can find Stado at http://www.stado.us
21
 
 *
22
 
 ****************************************************************************/
23
 
// Generated by JTB 1.2.2
24
 
//
25
 
 
 
1
/* Generated by JTB 1.4.4 */
26
2
package org.postgresql.stado.parser.core.syntaxtree;
27
3
 
28
 
/**
29
 
 * Grammar production:
30
 
 * f0 -> <UPDATE_>
31
 
 * f1 -> TableName(prn)
32
 
 * f2 -> <SET_>
33
 
 * f3 -> SetUpdateClause(prn)
34
 
 * f4 -> ( "," SetUpdateClause(prn) )*
35
 
 * f5 -> [ WhereClause(prn) ]
36
 
 */
37
 
public class UpdateTable implements Node {
38
 
   public NodeToken f0;
39
 
   public TableName f1;
40
 
   public NodeToken f2;
41
 
   public SetUpdateClause f3;
42
 
   public NodeListOptional f4;
43
 
   public NodeOptional f5;
44
 
 
45
 
   public UpdateTable(NodeToken n0, TableName n1, NodeToken n2, SetUpdateClause n3, NodeListOptional n4, NodeOptional n5) {
46
 
      f0 = n0;
47
 
      f1 = n1;
48
 
      f2 = n2;
49
 
      f3 = n3;
50
 
      f4 = n4;
51
 
      f5 = n5;
52
 
   }
53
 
 
54
 
   public UpdateTable(TableName n0, SetUpdateClause n1, NodeListOptional n2, NodeOptional n3) {
55
 
      f0 = new NodeToken("UPDATE");
56
 
      f1 = n0;
57
 
      f2 = new NodeToken("SET");
58
 
      f3 = n1;
59
 
      f4 = n2;
60
 
      f5 = n3;
61
 
   }
62
 
 
63
 
   public void accept(org.postgresql.stado.parser.core.visitor.Visitor v) {
64
 
      v.visit(this);
65
 
   }
66
 
   public Object accept(org.postgresql.stado.parser.core.visitor.ObjectVisitor v, Object argu) {
67
 
      return v.visit(this,argu);
68
 
   }
 
4
import org.postgresql.stado.parser.core.visitor.*;
 
5
 
 
6
public class UpdateTable implements INode {
 
7
 
 
8
  public NodeToken f0;
 
9
 
 
10
  public TableName f1;
 
11
 
 
12
  public NodeToken f2;
 
13
 
 
14
  public SetUpdateClause f3;
 
15
 
 
16
  public NodeListOptional f4;
 
17
 
 
18
  public NodeOptional f5;
 
19
 
 
20
  private static final long serialVersionUID = 144L;
 
21
 
 
22
  public UpdateTable(final NodeToken n0, final TableName n1, final NodeToken n2, final SetUpdateClause n3, final NodeListOptional n4, final NodeOptional n5) {
 
23
    f0 = n0;
 
24
    f1 = n1;
 
25
    f2 = n2;
 
26
    f3 = n3;
 
27
    f4 = n4;
 
28
    f5 = n5;
 
29
  }
 
30
 
 
31
  public UpdateTable(final TableName n0, final SetUpdateClause n1, final NodeListOptional n2, final NodeOptional n3) {
 
32
    f0 = new NodeToken("UPDATE");
 
33
    f1 = n0;
 
34
    f2 = new NodeToken("SET");
 
35
    f3 = n1;
 
36
    f4 = n2;
 
37
    f5 = n3;
 
38
  }
 
39
 
 
40
  public <R, A> R accept(final IRetArguVisitor<R, A> vis, final A argu) {
 
41
    return vis.visit(this, argu);
 
42
  }
 
43
 
 
44
  public <R> R accept(final IRetVisitor<R> vis) {
 
45
    return vis.visit(this);
 
46
  }
 
47
 
 
48
  public <A> void accept(final IVoidArguVisitor<A> vis, final A argu) {
 
49
    vis.visit(this, argu);
 
50
  }
 
51
 
 
52
  public void accept(final IVoidVisitor vis) {
 
53
    vis.visit(this);
 
54
  }
 
55
 
69
56
}
70