1 /* This file was generated by SableCC (http://www.sablecc.org/). */ 2 3 package com.google.clearsilver.jsilver.syntax.node; 4 5 @SuppressWarnings("nls") 6 public abstract class Token extends Node 7 { 8 private String text; 9 private int line; 10 private int pos; 11 12 public String getText() 13 { 14 return this.text; 15 } 16 17 public void setText(@SuppressWarnings("hiding") String text) 18 { 19 this.text = text; 20 } 21 22 public int getLine() 23 { 24 return this.line; 25 } 26 27 public void setLine(@SuppressWarnings("hiding") int line) 28 { 29 this.line = line; 30 } 31 32 public int getPos() 33 { 34 return this.pos; 35 } 36 37 public void setPos(@SuppressWarnings("hiding") int pos) 38 { 39 this.pos = pos; 40 } 41 42 @Override 43 public String toString() 44 { 45 return this.text + " "; 46 } 47 48 @Override 49 void removeChild(@SuppressWarnings("unused") Node child) 50 { 51 throw new RuntimeException("Not a child."); 52 } 53 54 @Override 55 void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) 56 { 57 throw new RuntimeException("Not a child."); 58 } 59 } 60