001 /* This file was generated by SableCC (http://www.sablecc.org/). */
002
003 package org.jdmp.core.script.jdmp.node;
004
005 @SuppressWarnings("nls")
006 public abstract class Token extends Node
007 {
008 private String text;
009 private int line;
010 private int pos;
011
012 public String getText()
013 {
014 return this.text;
015 }
016
017 public void setText(@SuppressWarnings("hiding") String text)
018 {
019 this.text = text;
020 }
021
022 public int getLine()
023 {
024 return this.line;
025 }
026
027 public void setLine(@SuppressWarnings("hiding") int line)
028 {
029 this.line = line;
030 }
031
032 public int getPos()
033 {
034 return this.pos;
035 }
036
037 public void setPos(@SuppressWarnings("hiding") int pos)
038 {
039 this.pos = pos;
040 }
041
042 @Override
043 public String toString()
044 {
045 return this.text + " ";
046 }
047
048 @Override
049 void removeChild(@SuppressWarnings("unused") Node child)
050 {
051 throw new RuntimeException("Not a child.");
052 }
053
054 @Override
055 void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
056 {
057 throw new RuntimeException("Not a child.");
058 }
059 }