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