Skip to main content
summaryrefslogtreecommitdiffstats
blob: d035690f0a451c9d6a6599e21941c65f6674b9ae (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
/**
 * <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;

import java.util.List;

import org.eclipse.xpand3.staticTypesystem.AbstractTypeReference;
import org.eclipse.xpand3.staticTypesystem.FunctionType;
import org.eclipse.xpand3.staticTypesystem.Type;
import org.eclipse.xpand3.staticTypesystem.WildcardType;

/**
 * @author Sven Efftinge
 * 
 */
public interface TypeSystem {
	String OBJECT = "Object";
	String VOID = "Void";
	
	// Collection types
	String COLLECTION = "Collection";
	String SET = "Set";
	String LIST = "List";
	
	// Datatypes
	String BOOLEAN = "Boolean";
	String INTEGER = "Integer";
	String REAL = "Real";
	String STRING = "String";
	
	// reflection layer types
	String FEATURE = "Feature";
	String TYPE = "Type";
	String OPERATION = "Operation";
	String PROPERTY = "Property";
	String STATIC_PROPERTY = "StaticProperty";
	
	WildcardType wildCard(AbstractTypeReference...upperBounds);
	WildcardType wildCardWithLower(AbstractTypeReference...lowerBounds);
	
	Type typeForName(String name, AbstractTypeReference...typeArguments);
	
	FunctionType functionForNameAndParameterTypes(String name, AbstractTypeReference...parameterTypes);
	FunctionType functionForName(String name, List<AbstractTypeReference> parameterTypes, AbstractTypeReference...typeArguments);
}

Back to the top