Skip to main content
summaryrefslogtreecommitdiffstats
blob: 1b965346f15b6494aa3a9fee190c380061b5a658 (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
package org.eclipse.xtend.backend.iface;

import java.util.Collection;
import java.util.List;

import org.eclipse.xtend.backend.common.BackendType;
import org.eclipse.xtend.backend.common.NamedFunction;


//TODO add an 'init' method to pass in the string argument and the backend typesystem?


/**
 * 
 * @author Arno Haase (http://www.haase-consulting.com)
 */
public interface BackendContributor {
    
    /**
     * This method is used by the middle end to resolve type literals. This Contributor
     *  should return "null" if it does not feel responsible for a giben type literal.
     */
    BackendType convertToType (List<String> segments);
    
    Collection<NamedFunction> getContributedFunctions ();
}

Back to the top