public final class LanguageInfo extends Object
Modifier and Type | Method and Description |
---|---|
String |
getDefaultMimeType()
Returns the default MIME type of a language or
null if no default mime-type is
set. |
String |
getId()
Returns the unique id of the language.
|
Set<String> |
getMimeTypes()
Returns the MIME types supported by this language.
|
String |
getName()
Returns the unique name of the language.
|
String |
getVersion()
Returns the version of the language.
|
boolean |
isInteractive() |
boolean |
isInternal() |
public String getId()
TruffleLanguage.Registration.id()
.public String getName()
TruffleLanguage.Registration.name()
.public String getVersion()
TruffleLanguage.Registration.version()
.public String getDefaultMimeType()
null
if no default mime-type is
set. The default MIME type specifies whether a source is loaded as character or binary based
source by default. If no default MIME type is set all sources evaluated with that language
will be interpreted as character based
sources. This set is
equivalent to the set provided by TruffleLanguage.Registration.defaultMimeType()
.public Set<String> getMimeTypes()
TruffleLanguage.Registration.characterMimeTypes()
and TruffleLanguage.Registration.byteMimeTypes()
.public boolean isInternal()
true
if the language is internal
,
false
otherwisepublic boolean isInteractive()
true
if the language is interactive
,
false
otherwise