KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > soot > jimple > parser > node > TThrow


1 /* This file was generated by SableCC (http://www.sablecc.org/). */
2
3 package soot.jimple.parser.node;
4
5 import soot.jimple.parser.analysis.*;
6
7 public final class TThrow extends Token
8 {
9     public TThrow()
10     {
11         super.setText("throw");
12     }
13
14     public TThrow(int line, int pos)
15     {
16         super.setText("throw");
17         setLine(line);
18         setPos(pos);
19     }
20
21     public Object JavaDoc clone()
22     {
23       return new TThrow(getLine(), getPos());
24     }
25
26     public void apply(Switch sw)
27     {
28         ((Analysis) sw).caseTThrow(this);
29     }
30
31     public void setText(String JavaDoc text)
32     {
33         throw new RuntimeException JavaDoc("Cannot change TThrow text.");
34     }
35 }
36
Popular Tags