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