• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
getText()12     public String getText()
13     {
14         return this.text;
15     }
16 
setText(@uppressWarnings"hiding") String text)17     public void setText(@SuppressWarnings("hiding") String text)
18     {
19         this.text = text;
20     }
21 
getLine()22     public int getLine()
23     {
24         return this.line;
25     }
26 
setLine(@uppressWarnings"hiding") int line)27     public void setLine(@SuppressWarnings("hiding") int line)
28     {
29         this.line = line;
30     }
31 
getPos()32     public int getPos()
33     {
34         return this.pos;
35     }
36 
setPos(@uppressWarnings"hiding") int pos)37     public void setPos(@SuppressWarnings("hiding") int pos)
38     {
39         this.pos = pos;
40     }
41 
42     @Override
toString()43     public String toString()
44     {
45         return this.text + " ";
46     }
47 
48     @Override
removeChild(@uppressWarnings"unused") Node child)49     void removeChild(@SuppressWarnings("unused") Node child)
50     {
51         throw new RuntimeException("Not a child.");
52     }
53 
54     @Override
replaceChild(@uppressWarnings"unused") Node oldChild, @SuppressWarnings("unused") Node newChild)55     void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
56     {
57         throw new RuntimeException("Not a child.");
58     }
59 }
60