Modifier and Type | Method and Description |
---|---|
String |
getDefaultMimeType()
Returns the default MIME type that is in use by a language.
|
String |
getId()
Gets the primary identification string of this language.
|
String |
getImplementationName()
Gets a human-readable name of the language implementation (for example, "Graal.JS").
|
Set<String> |
getMimeTypes()
Returns the MIME types supported by this language.
|
String |
getName()
Gets a human-readable name for the language (for example, "JavaScript").
|
OptionDescriptors |
getOptions()
Returns the set of options provided by this language.
|
String |
getVersion()
Gets the version information of the language in an arbitrary language-specific format.
|
String |
getWebsite()
Get the URL for the language website.
|
boolean |
isInteractive()
Returns
true if a the language is suitable for interactive evaluation of
sources . |
public String getId()
js
)public String getName()
public String getImplementationName()
null
if no implementation name was specified.public String getVersion()
public boolean isInteractive()
true
if a the language is suitable for interactive evaluation of
sources
. Interactive
languages should be displayed in
interactive environments and presented to the user.public OptionDescriptors getOptions()
engine
or a
context
. The option descriptor
name
must be used as the option name.public String getDefaultMimeType()
null
if the language does not specify a default MIME type.Source.hasBytes()
,
Source.getMimeType()
public Set<String> getMimeTypes()
Source.getMimeType()
public String getWebsite()