All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.truffle.nfi.backend.panama.PanamaNFILanguageProvider Maven / Gradle / Ivy

There is a newer version: 24.1.1
Show newest version
// CheckStyle: start generated
package com.oracle.truffle.nfi.backend.panama;

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(PanamaNFILanguage.class)
@Registration(characterMimeTypes = "trufflenfi/panama", contextPolicy = ContextPolicy.SHARED, id = "internal/nfi-panama", internal = true, name = "nfi-panama", version = "0.1")
public final class PanamaNFILanguageProvider extends TruffleLanguageProvider {

    @Override
    protected String getLanguageClassName() {
        return "com.oracle.truffle.nfi.backend.panama.PanamaNFILanguage";
    }

    @Override
    protected Object create() {
        return new PanamaNFILanguage();
    }

    @Override
    protected Collection getServicesClassNames() {
        return List.of("com.oracle.truffle.nfi.backend.spi.NFIBackendFactory");
    }

    @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));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy