Skip to main content
summaryrefslogtreecommitdiffstats
blob: f47eb309950b5f74eaf5c0850d8e4e80e33e854b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
 * <copyright>
 *
 * Copyright (c) 2005-2006 Sven Efftinge (http://www.efftinge.de) and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Sven Efftinge (http://www.efftinge.de) - Initial API and implementation
 *
 * </copyright>
 */
package org.eclipse.internal.xtend.expression.ast;

import org.eclipse.xtend.expression.ExecutionContext;

public abstract class SyntaxElement implements ISyntaxElement {
	protected int start;

	protected int end;

	protected int line;

	public SyntaxElement() {
	}

	public void setEnd(int end) {
		this.end = end;
	}

	public void setLine(int line) {
		this.line = line;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getLine() {
		return line;
	}

	public int getEnd() {
		return end;
	}

	public int getStart() {
		return start;
	}

	private String fileName;

	public void setFileName(final String fileName) {
		this.fileName = fileName;
	}

	public String getFileName() {
		return fileName;
	}

	public String getNameString(ExecutionContext context) {
		return toString();
	}
}

Back to the top