00001 package edu.ksu.cis.bandera.specification.node;
00002
00003
00004
00005 import edu.ksu.cis.bandera.specification.analysis.*;
00006
00007 public final class TPlus extends Token
00008 {
00009 public TPlus()
00010 {
00011 super.setText("+");
00012 }
00013 public TPlus(int line, int pos)
00014 {
00015 super.setText("+");
00016 setLine(line);
00017 setPos(pos);
00018 }
00019 public void apply(Switch sw)
00020 {
00021 ((Analysis) sw).caseTPlus(this);
00022 }
00023 public Object clone()
00024 {
00025 return new TPlus(getLine(), getPos());
00026 }
00027 public void setText(String text)
00028 {
00029 throw new RuntimeException("Cannot change TPlus text.");
00030 }
00031 }