]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.spreadsheet.common/src/org/simantics/spreadsheet/common/expression/node/Token.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.spreadsheet.common / src / org / simantics / spreadsheet / common / expression / node / Token.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
3  * in Industry THTH ry.\r
4  * All rights reserved. This program and the accompanying materials\r
5  * are made available under the terms of the Eclipse Public License v1.0\r
6  * which accompanies this distribution, and is available at\r
7  * http://www.eclipse.org/legal/epl-v10.html\r
8  *\r
9  * Contributors:\r
10  *     VTT Technical Research Centre of Finland - initial API and implementation\r
11  *******************************************************************************/\r
12 /* This file was generated by SableCC (http://www.sablecc.org/). */\r
13 \r
14 package org.simantics.spreadsheet.common.expression.node;\r
15 \r
16 @SuppressWarnings("nls")\r
17 public abstract class Token extends Node\r
18 {\r
19     private String text;\r
20     private int line;\r
21     private int pos;\r
22 \r
23     public String getText()\r
24     {\r
25         return this.text;\r
26     }\r
27 \r
28     public void setText(@SuppressWarnings("hiding") String text)\r
29     {\r
30         this.text = text;\r
31     }\r
32 \r
33     public int getLine()\r
34     {\r
35         return this.line;\r
36     }\r
37 \r
38     public void setLine(@SuppressWarnings("hiding") int line)\r
39     {\r
40         this.line = line;\r
41     }\r
42 \r
43     public int getPos()\r
44     {\r
45         return this.pos;\r
46     }\r
47 \r
48     public void setPos(@SuppressWarnings("hiding") int pos)\r
49     {\r
50         this.pos = pos;\r
51     }\r
52 \r
53     @Override\r
54     public String toString()\r
55     {\r
56         return this.text + " ";\r
57     }\r
58 \r
59     @Override\r
60     void removeChild(@SuppressWarnings("unused") Node child)\r
61     {\r
62         throw new RuntimeException("Not a child.");\r
63     }\r
64 \r
65     @Override\r
66     void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)\r
67     {\r
68         throw new RuntimeException("Not a child.");\r
69     }\r
70 }\r