~ubuntu-branches/ubuntu/vivid/sablecc/vivid

« back to all changes in this revision

Viewing changes to src/org/sablecc/sablecc/node/TPkgId.java

  • Committer: Bazaar Package Importer
  • Author(s): Etienne M. Gagnon
  • Date: 2004-01-25 13:28:01 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040125132801-0so74ui506b30b1q
Tags: 2.18.2-1
* New upstream release.
* Keep the org.sablecc.ant.taskdef.Sablecc ant task of the upstream
  package, closes: #213020.
* Improve man page.
* Update Standards-Version to 3.6.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2
 
 * This file is part of SableCC.                             *
3
 
 * See the file "LICENSE" for copyright information and the  *
4
 
 * terms and conditions for copying, distribution and        *
5
 
 * modification of SableCC.                                  *
6
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 
1
/* This file was generated by SableCC (http://www.sablecc.org/). */
7
2
 
8
3
package org.sablecc.sablecc.node;
9
4
 
10
 
import org.sablecc.sablecc.Switch;
11
 
import org.sablecc.sablecc.analysis.Analysis;
 
5
import org.sablecc.sablecc.analysis.*;
12
6
 
13
7
public final class TPkgId extends Token
14
8
{
15
 
    public void apply(Switch sw)
16
 
    {
17
 
        ((Analysis) sw).caseTPkgId(this);
18
 
    }
 
9
  public TPkgId(String text)
 
10
  {
 
11
    setText(text);
 
12
  }
 
13
 
 
14
  public TPkgId(String text, int line, int pos)
 
15
  {
 
16
    setText(text);
 
17
    setLine(line);
 
18
    setPos(pos);
 
19
  }
 
20
 
 
21
  public Object clone()
 
22
  {
 
23
    return new TPkgId(getText(), getLine(), getPos());
 
24
  }
 
25
 
 
26
  public void apply(Switch sw)
 
27
  {
 
28
    ((Analysis) sw).caseTPkgId(this);
 
29
  }
19
30
}
20