~sgdg/stado/stado30

« back to all changes in this revision

Viewing changes to src/org/postgresql/stado/parser/core/syntaxtree/RenameTable.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 -> <RENAME_>
31
 
 * f1 -> <TABLE_>
32
 
 * f2 -> TableName(prn)
33
 
 * f3 -> <TO_>
34
 
 * f4 -> TableName(prn)
35
 
 */
36
 
public class RenameTable implements Node {
37
 
   public NodeToken f0;
38
 
   public NodeToken f1;
39
 
   public TableName f2;
40
 
   public NodeToken f3;
41
 
   public TableName f4;
42
 
 
43
 
   public RenameTable(NodeToken n0, NodeToken n1, TableName n2, NodeToken n3, TableName n4) {
44
 
      f0 = n0;
45
 
      f1 = n1;
46
 
      f2 = n2;
47
 
      f3 = n3;
48
 
      f4 = n4;
49
 
   }
50
 
 
51
 
   public RenameTable(TableName n0, TableName n1) {
52
 
      f0 = new NodeToken("RENAME");
53
 
      f1 = new NodeToken("TABLE");
54
 
      f2 = n0;
55
 
      f3 = new NodeToken("TO");
56
 
      f4 = n1;
57
 
   }
58
 
 
59
 
   public void accept(org.postgresql.stado.parser.core.visitor.Visitor v) {
60
 
      v.visit(this);
61
 
   }
62
 
   public Object accept(org.postgresql.stado.parser.core.visitor.ObjectVisitor v, Object argu) {
63
 
      return v.visit(this,argu);
64
 
   }
 
4
import org.postgresql.stado.parser.core.visitor.*;
 
5
 
 
6
public class RenameTable implements INode {
 
7
 
 
8
  public NodeToken f0;
 
9
 
 
10
  public NodeToken f1;
 
11
 
 
12
  public TableName f2;
 
13
 
 
14
  public NodeToken f3;
 
15
 
 
16
  public TableName f4;
 
17
 
 
18
  private static final long serialVersionUID = 144L;
 
19
 
 
20
  public RenameTable(final NodeToken n0, final NodeToken n1, final TableName n2, final NodeToken n3, final TableName n4) {
 
21
    f0 = n0;
 
22
    f1 = n1;
 
23
    f2 = n2;
 
24
    f3 = n3;
 
25
    f4 = n4;
 
26
  }
 
27
 
 
28
  public RenameTable(final TableName n0, final TableName n1) {
 
29
    f0 = new NodeToken("RENAME");
 
30
    f1 = new NodeToken("TABLE");
 
31
    f2 = n0;
 
32
    f3 = new NodeToken("TO");
 
33
    f4 = n1;
 
34
  }
 
35
 
 
36
  public <R, A> R accept(final IRetArguVisitor<R, A> vis, final A argu) {
 
37
    return vis.visit(this, argu);
 
38
  }
 
39
 
 
40
  public <R> R accept(final IRetVisitor<R> vis) {
 
41
    return vis.visit(this);
 
42
  }
 
43
 
 
44
  public <A> void accept(final IVoidArguVisitor<A> vis, final A argu) {
 
45
    vis.visit(this, argu);
 
46
  }
 
47
 
 
48
  public void accept(final IVoidVisitor vis) {
 
49
    vis.visit(this);
 
50
  }
 
51
 
65
52
}
66