com.oracle.truffle.nfi.NFILanguageProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truffle-nfi Show documentation
Show all versions of truffle-nfi Show documentation
Native function interface for the Truffle framework.
The newest version!
// CheckStyle: start generated
package com.oracle.truffle.nfi;
import com.oracle.truffle.api.TruffleLanguage.ContextPolicy;
import com.oracle.truffle.api.TruffleLanguage.Registration;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.provider.TruffleLanguageProvider;
import java.util.Collection;
import java.util.List;
@GeneratedBy(NFILanguage.class)
@Registration(characterMimeTypes = "application/x-native", contextPolicy = ContextPolicy.SHARED, id = "nfi", internal = true, name = "TruffleNFI", version = "0.1")
public final class NFILanguageProvider extends TruffleLanguageProvider {
@Override
protected String getLanguageClassName() {
return "com.oracle.truffle.nfi.NFILanguage";
}
@Override
protected Object create() {
return new NFILanguage();
}
@Override
protected Collection getServicesClassNames() {
return List.of();
}
@Override
protected List> createFileTypeDetectors() {
return List.of();
}
@Override
protected List getInternalResourceIds() {
return List.of();
}
@Override
protected Object createInternalResource(String resourceId) {
throw new IllegalArgumentException(String.format("Unsupported internal resource id %s, supported ids are ", resourceId));
}
}