Package com.oracle.truffle.api.nodes
Class LanguageInfo
java.lang.Object
com.oracle.truffle.api.nodes.LanguageInfo
Represents public information about a language.
- Since:
- 0.25
-
Method Summary
Modifier and TypeMethodDescriptionReturns the default MIME type of a language ornull
if no default mime-type is set.getId()
Returns the unique id of the language.Returns the MIME types supported by this language.getName()
Returns the unique name of the language.Returns the version of the language.boolean
boolean
-
Method Details
-
getId
Returns the unique id of the language. This id is equivalent to the id returned byTruffleLanguage.Registration.id()
.- Since:
- 0.27
-
getName
Returns the unique name of the language. This name is equivalent to the name returned byTruffleLanguage.Registration.name()
.- Since:
- 0.25
-
getVersion
Returns the version of the language. This version is equivalent to the name returned byTruffleLanguage.Registration.version()
.- Since:
- 0.25
-
getDefaultMimeType
Returns the default MIME type of a language ornull
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 ascharacter based
sources. This set is equivalent to the set provided byTruffleLanguage.Registration.defaultMimeType()
.- Since:
- 19.0
-
getMimeTypes
Returns the MIME types supported by this language. This set is equivalent to the set provided byTruffleLanguage.Registration.characterMimeTypes()
andTruffleLanguage.Registration.byteMimeTypes()
.- Since:
- 0.25
-
isInternal
public boolean isInternal()- Returns:
true
if the language isinternal
,false
otherwise- Since:
- 0.31
-
isInteractive
public boolean isInteractive()- Returns:
true
if the language isinteractive
,false
otherwise- Since:
- 19.0
-