blob: c684704f605cf200fb859d6fdd6f527b8b509cea (
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
|
/**
* <copyright>
*
* Copyright (c) 2002-2007 Kolbware 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:
* Kolbware, Bernd Kolb - Initial API and implementation
*
* </copyright>
*
*/
package org.eclipse.xtend.middleend.internal.xpand3;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.eclipose.xtend.middleend.MiddleEnd;
import org.eclipose.xtend.middleend.MiddleEndFactory;
import org.eclipse.xpand3.File;
import org.eclipse.xpand3.analyzation.AnalyzeContext;
import org.eclipse.xpand3.declaration.Extension;
import org.eclipse.xtend.backend.common.BackendTypesystem;
import org.eclipse.xtend.backend.common.ExpressionBase;
/**
* @author Bernd Kolb
*
*/
public class XtendBackendFacade {
private MiddleEnd middleEnd;
private BackendTypeConverter typeConverter;
private AnalyzeContext ctx;
private final String extensionFile;
public XtendBackendFacade(String extensionFile) {
this.extensionFile = extensionFile;
middleEnd = MiddleEndFactory.create(findBackendTypeSystem(), Collections.EMPTY_MAP);
// TODO: To be impl
typeConverter = null;
ctx = null;
}
private BackendTypesystem findBackendTypeSystem() {
throw new UnsupportedOperationException("Not yet implemented");
}
private static XtendBackendFacade createForFile(String extensionFile) {
return new XtendBackendFacade(extensionFile);
}
private File parse() {
// TODO: To be impl
throw new UnsupportedOperationException("Not yet impl");
}
}
|