Skip to main content
summaryrefslogtreecommitdiffstats
blob: ce0dc25946eab9f959551073f3a034a73d60ca9d (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/**
 * <copyright> 
 *
 * Copyright (c) 2002-2007 itemis AG 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: 
 *   itemis AG - Initial API and implementation
 *
 * </copyright>
 *
 */
package org.eclipse.xand3.analyzation.typesystem.builtin;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import org.eclipse.xand3.analyzation.typesystem.DeclarationsContributor;
import org.eclipse.xpand3.staticTypesystem.declaration.DeclaredFunction;
import org.eclipse.xpand3.staticTypesystem.declaration.DeclaredType;

/**
 * @author Sven Efftinge
 *
 */
public class BuiltinDeclarationsContributor implements DeclarationsContributor {
	
//	private BackendTypesystem backendTypesystem = null;
	
	private Map<String, DeclaredType> types = new HashMap<String, DeclaredType>();
	{
		
	}

	/* (non-Javadoc)
	 * @see org.eclipse.xand3.analyzation.typesystem.DeclarationsContributor#functionsForName(java.lang.String)
	 */
	public Set<DeclaredFunction> functionsForName(String name) {
		// TODO Auto-generated method stub
		return null;
	}

	/* (non-Javadoc)
	 * @see org.eclipse.xand3.analyzation.typesystem.DeclarationsContributor#typeForName(java.lang.String)
	 */
	public DeclaredType typeForName(String name) {
		
		return null;
	}
	
	public static final String OBJECT = "Object";

	// Datatypes
	public final static String STRING = "String";

	public final static String BOOLEAN = "Boolean";

	public final static String INTEGER = "Integer";

	public final static String REAL = "Real";

	// Collection types
	public final static String COLLECTION = "Collection";

	public final static String SET = "Set";

	public final static String LIST = "List";

	// reflection layer types
	public static final String TYPE = "Type";

	public static final String FEATURE = "Feature";

	public static final String PROPERTY = "Property";

	public static final String OPERATION = "Operation";

	public static final String STATIC_PROPERTY = "StaticProperty";

	public static final String VOID = "Void";
}

Back to the top