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