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

org.graalvm.tools.lsp.instrument.LSPInstrumentProvider Maven / Gradle / Ivy

// CheckStyle: start generated
package org.graalvm.tools.lsp.instrument;

import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.instrumentation.TruffleInstrument.Registration;
import com.oracle.truffle.api.instrumentation.provider.TruffleInstrumentProvider;
import java.util.Collection;
import java.util.List;

@GeneratedBy(LSPInstrument.class)
@Registration(id = "lsp", name = "Language Server", version = "0.1", website = "https://www.graalvm.org/tools/lsp/")
public final class LSPInstrumentProvider extends TruffleInstrumentProvider {

    @Override
    protected String getInstrumentClassName() {
        return "org.graalvm.tools.lsp.instrument.LSPInstrument";
    }

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

    @Override
    protected Collection getServicesClassNames() {
        return List.of("org.graalvm.tools.lsp.instrument.EnvironmentProvider");
    }

    @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