Class Language
java.lang.Object
org.graalvm.polyglot.Language
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the default MIME type that is in use by a language.getId()
Gets the primary identification string of this language.Gets a human-readable name of the language implementation (for example, "Graal.JS").Returns the MIME types supported by this language.getName()
Gets a human-readable name for the language (for example, "JavaScript").Returns the set of options provided by this language.Returns the source options descriptors available for sources of this language.Gets the version information of the language in an arbitrary language-specific format.Get the URL for the language website.int
hashCode()
boolean
Returnstrue
if a the language is suitable for interactive evaluation ofsources
.
-
Method Details
-
getId
Gets the primary identification string of this language. The language id is used as the primary way of identifying languages in the polyglot API. (eg.js
)- Returns:
- a language ID string.
- Since:
- 19.0
-
getName
Gets a human-readable name for the language (for example, "JavaScript").- Returns:
- the user-friendly name for this language.
- Since:
- 19.0
-
getImplementationName
Gets a human-readable name of the language implementation (for example, "Graal.JS"). Returnsnull
if no implementation name was specified.- Since:
- 19.0
-
getVersion
Gets the version information of the language in an arbitrary language-specific format.- Since:
- 19.0
-
isInteractive
public boolean isInteractive()Returnstrue
if a the language is suitable for interactive evaluation ofsources
.Interactive
languages should be displayed in interactive environments and presented to the user.- Since:
- 19.0
-
getOptions
-
getSourceOptions
Returns the source options descriptors available for sources of this language.- Since:
- 25.0
- See Also:
-
getDefaultMimeType
Returns the default MIME type that is in use by a language. The default MIME type specifies whether a source is loaded as character or binary based source by default. Returnsnull
if the language does not specify a default MIME type.- Since:
- 19.0
- See Also:
-
getMimeTypes
-
getWebsite
-
hashCode
-
equals
-