~sgdg/stado/stado

« back to all changes in this revision

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

  • Committer: Andrei Martsinchyk
  • Date: 2013-04-22 15:04:09 UTC
  • mfrom: (9.1.2 stado30)
  • Revision ID: andrei.martsinchyk@gmail.com-20130422150409-cv4i89c21bbgvby1
Merge in 3.0 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//
2
 
// Generated by JTB 1.2.2
3
 
//
4
 
 
 
1
/* Generated by JTB 1.4.4 */
5
2
package org.postgresql.stado.parser.core.syntaxtree;
6
3
 
7
 
/**
8
 
 * Grammar production:
9
 
 * f0 -> <RENAME_>
10
 
 * f1 -> [ <COLUMN_> ]
11
 
 * f2 -> Identifier(prn)
12
 
 * f3 -> <TO_>
13
 
 * f4 -> Identifier(prn)
14
 
 */
15
 
public class RenameDef implements Node {
16
 
   public NodeToken f0;
17
 
   public NodeOptional f1;
18
 
   public Identifier f2;
19
 
   public NodeToken f3;
20
 
   public Identifier f4;
21
 
 
22
 
   public RenameDef(NodeToken n0, NodeOptional n1, Identifier n2, NodeToken n3, Identifier n4) {
23
 
      f0 = n0;
24
 
      f1 = n1;
25
 
      f2 = n2;
26
 
      f3 = n3;
27
 
      f4 = n4;
28
 
   }
29
 
 
30
 
   public RenameDef(NodeOptional n0, Identifier n1, Identifier n2) {
31
 
      f0 = new NodeToken("RENAME");
32
 
      f1 = n0;
33
 
      f2 = n1;
34
 
      f3 = new NodeToken("TO");
35
 
      f4 = n2;
36
 
   }
37
 
 
38
 
   public void accept(org.postgresql.stado.parser.core.visitor.Visitor v) {
39
 
      v.visit(this);
40
 
   }
41
 
   public Object accept(org.postgresql.stado.parser.core.visitor.ObjectVisitor v, Object argu) {
42
 
      return v.visit(this,argu);
43
 
   }
 
4
import org.postgresql.stado.parser.core.visitor.*;
 
5
 
 
6
public class RenameDef implements INode {
 
7
 
 
8
  public NodeToken f0;
 
9
 
 
10
  public NodeOptional f1;
 
11
 
 
12
  public Identifier f2;
 
13
 
 
14
  public NodeToken f3;
 
15
 
 
16
  public Identifier f4;
 
17
 
 
18
  private static final long serialVersionUID = 144L;
 
19
 
 
20
  public RenameDef(final NodeToken n0, final NodeOptional n1, final Identifier n2, final NodeToken n3, final Identifier n4) {
 
21
    f0 = n0;
 
22
    f1 = n1;
 
23
    f2 = n2;
 
24
    f3 = n3;
 
25
    f4 = n4;
 
26
  }
 
27
 
 
28
  public RenameDef(final NodeOptional n0, final Identifier n1, final Identifier n2) {
 
29
    f0 = new NodeToken("RENAME");
 
30
    f1 = n0;
 
31
    f2 = n1;
 
32
    f3 = new NodeToken("TO");
 
33
    f4 = n2;
 
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
 
44
52
}
45