Package com.oracle.truffle.api
Interface TruffleLanguage.Provider
- Enclosing class:
TruffleLanguage<C>
Deprecated.
Used to register a
TruffleLanguage
using a ServiceLoader
. This interface is
not intended to be implemented directly by a language developer, rather the implementation is
generated by the Truffle DSL. The generated implementation has to inherit the
TruffleLanguage.Registration
and ProvidedTags
annotations from the TruffleLanguage
.- Since:
- 19.3.0
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Deprecated.Creates a new instance of aTruffleLanguage
.Deprecated.Creates file type detectors used by theTruffleLanguage
.Deprecated.Returns the name of a class implementing theTruffleLanguage
.Deprecated.Returns the class names of provided services.
-
Method Details
-
getLanguageClassName
String getLanguageClassName()Deprecated.Returns the name of a class implementing theTruffleLanguage
.- Since:
- 19.3.0
-
create
TruffleLanguage<?> create()Deprecated.Creates a new instance of aTruffleLanguage
.- Since:
- 19.3.0
-
createFileTypeDetectors
List<TruffleFile.FileTypeDetector> createFileTypeDetectors()Deprecated.Creates file type detectors used by theTruffleLanguage
.- Since:
- 19.3.0
-
getServicesClassNames
Collection<String> getServicesClassNames()Deprecated.Returns the class names of provided services.- Since:
- 19.3.0
-
TruffleLanguageProvider
.